diff options
author | Jeong Arm <kjwonmail@gmail.com> | 2020-03-21 11:14:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 03:14:10 +0100 |
commit | 8c42e0b53c1e3f34846f15064ada2bec0c8cc907 (patch) | |
tree | 88e122ea10b8bb5243566e9c67e5f0c76e9c9b2b /app/models | |
parent | 8758221e7344645bc1357578ec1789aa7d46da08 (diff) |
Make bookmarks also searchable (#13271)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 8e040f0e6..ff653100a 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -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 |