Skip to content
Snippets Groups Projects
Unverified Commit 8c42e0b5 authored by Jeong Arm's avatar Jeong Arm Committed by GitHub
Browse files

Make bookmarks also searchable (#13271)

parent 8758221e
No related branches found
No related tags found
No related merge requests found
......@@ -142,10 +142,12 @@ class Status < ApplicationRecord
ids += mentions.where(account: Account.local).pluck(:account_id)
ids += favourites.where(account: Account.local).pluck(:account_id)
ids += reblogs.where(account: Account.local).pluck(:account_id)
ids += bookmarks.where(account: Account.local).pluck(:account_id)
else
ids += preloaded.mentions[id] || []
ids += preloaded.favourites[id] || []
ids += preloaded.reblogs[id] || []
ids += preloaded.bookmarks[id] || []
end
ids.uniq
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment