mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 00:39:17 +00:00
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;
|
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 = Post.create(post);
|
||||||
post.set('topic', topicMap[post.topic_id]);
|
post.set('topic', topicMap[post.topic_id]);
|
||||||
return post;
|
return post;
|
||||||
|
@ -63,7 +63,9 @@
|
|||||||
{{#each model.posts as |result|}}
|
{{#each model.posts as |result|}}
|
||||||
<div class='fps-result'>
|
<div class='fps-result'>
|
||||||
<div class='author'>
|
<div class='author'>
|
||||||
|
<a href={{result.userPath}} data-user-card="{{unbound result.username}}">
|
||||||
{{avatar result imageSize="large"}}
|
{{avatar result imageSize="large"}}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='fps-topic'>
|
<div class='fps-topic'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user