diff --git a/src/app/components/feed/postlist/postlist.component.html b/src/app/components/feed/postlist/postlist.component.html
index 03d0101..9d1f338 100644
--- a/src/app/components/feed/postlist/postlist.component.html
+++ b/src/app/components/feed/postlist/postlist.component.html
@@ -24,7 +24,8 @@
{{post.author.name}}
- @{{post.author.handle}}
+
+ @{{post.author.handle}}
{{post.date}}
diff --git a/src/app/components/feed/postlist/postlist.component.sass b/src/app/components/feed/postlist/postlist.component.sass
index cf022b7..650a8bc 100644
--- a/src/app/components/feed/postlist/postlist.component.sass
+++ b/src/app/components/feed/postlist/postlist.component.sass
@@ -11,5 +11,7 @@
.mat-card-subtitle
display: contents
+ a:hover
+ cursor: pointer
diff --git a/src/app/components/feed/postlist/postlist.component.ts b/src/app/components/feed/postlist/postlist.component.ts
index 3d35997..353089f 100644
--- a/src/app/components/feed/postlist/postlist.component.ts
+++ b/src/app/components/feed/postlist/postlist.component.ts
@@ -1,6 +1,8 @@
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { Post } from 'src/app/models/post';
import { FeedService } from 'src/app/services/feed/feed.service';
+import { Router } from '@angular/router';
+import { User } from 'src/app/models/user';
@Component({
selector: 'feed-postlist',
@@ -13,7 +15,7 @@ export class PostlistComponent implements OnInit {
@Output() voteEvent = new EventEmitter();
selectedPost: Post;
- constructor(private feedService: FeedService) { }
+ constructor(private feedService: FeedService, private router: Router) { }
ngOnInit() {
}
@@ -28,4 +30,7 @@ export class PostlistComponent implements OnInit {
this.voteEvent.emit(true); });
}
+ public showUserProfile(post: any) {
+ this.router.navigate(['profile/' + post.author.id]);
+ }
}
diff --git a/src/app/components/search/search.component.html b/src/app/components/search/search.component.html
index 932ca69..1a517d6 100644
--- a/src/app/components/search/search.component.html
+++ b/src/app/components/search/search.component.html
@@ -3,7 +3,7 @@