mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: link to pm tags when searching in personal messages
This commit is contained in:
parent
df815d6c0e
commit
277e216d25
@ -146,6 +146,11 @@ export default Ember.Controller.extend({
|
||||
}
|
||||
},
|
||||
|
||||
@computed('q')
|
||||
isPrivateMessage(q) {
|
||||
return q && this.currentUser && (q.indexOf("in:private") > -1 || q.indexOf(`private_messages:${this.currentUser.get('username_lower')}`) > -1);
|
||||
},
|
||||
|
||||
@observes('loading')
|
||||
_showFooter() {
|
||||
this.set("application.showFooter", !this.get("loading"));
|
||||
|
@ -85,7 +85,7 @@
|
||||
{{/if}}
|
||||
{{category-link result.topic.category hideParent=true}}
|
||||
{{#each result.topic.tags as |tag|}}
|
||||
{{discourse-tag tag}}
|
||||
{{discourse-tag tag isPrivateMessage=isPrivateMessage}}
|
||||
{{/each}}
|
||||
{{plugin-outlet name="full-page-search-category" args=(hash result=result)}}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user