mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: not showing any search results when scoped on user
This commit is contained in:
parent
b47c1defe0
commit
7ef2f48660
@ -59,7 +59,10 @@ export default function searchForTerm(term, opts) {
|
||||
}
|
||||
});
|
||||
|
||||
var noResults = !!((results.topics.length === 0) && (results.posts.length === 0) && (results.categories.length === 0));
|
||||
var noResults = !!(results.topics.length === 0 &&
|
||||
results.posts.length === 0 &&
|
||||
results.users.length === 0 &&
|
||||
results.categories.length === 0);
|
||||
|
||||
return noResults ? null : Em.Object.create(results);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user