fixes #2859: search:uncategorized should search for uncategorized saved searches
This commit is contained in:
@@ -48,11 +48,7 @@ class UserPresenter
|
|||||||
return Post.where("false")
|
return Post.where("false")
|
||||||
end
|
end
|
||||||
|
|
||||||
if category == SavedSearch::UNCATEGORIZED_NAME
|
ids = SavedSearch.post_ids(CurrentUser.user.id, category)
|
||||||
ids = SavedSearch.post_ids(CurrentUser.user.id)
|
|
||||||
else
|
|
||||||
ids = SavedSearch.post_ids(CurrentUser.user.id, category)
|
|
||||||
end
|
|
||||||
|
|
||||||
if ids.any?
|
if ids.any?
|
||||||
arel = Post.where("id in (?)", ids.map(&:to_i)).order("id desc").limit(10)
|
arel = Post.where("id in (?)", ids.map(&:to_i)).order("id desc").limit(10)
|
||||||
|
|||||||
Reference in New Issue
Block a user