UX: Full page search results weren't linked to users
This commit is contained in:
parent
431c211ec2
commit
6507246e97
|
@ -22,7 +22,8 @@ export function translateResults(results, opts) {
|
|||
return topic;
|
||||
});
|
||||
|
||||
results.posts = results.posts.map(function(post){
|
||||
results.posts = results.posts.map(post => {
|
||||
post.userPath = Discourse.getURL(`/users/${post.username.toLowerCase()}`);
|
||||
post = Post.create(post);
|
||||
post.set('topic', topicMap[post.topic_id]);
|
||||
return post;
|
||||
|
|
|
@ -63,7 +63,9 @@
|
|||
{{#each model.posts as |result|}}
|
||||
<div class='fps-result'>
|
||||
<div class='author'>
|
||||
<a href={{result.userPath}} data-user-card="{{unbound result.username}}">
|
||||
{{avatar result imageSize="large"}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class='fps-topic'>
|
||||
|
|
Loading…
Reference in New Issue