about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2020-03-21 11:14:10 +0900
committerGitHub <noreply@github.com>2020-03-21 03:14:10 +0100
commit8c42e0b53c1e3f34846f15064ada2bec0c8cc907 (patch)
tree88e122ea10b8bb5243566e9c67e5f0c76e9c9b2b /app/models
parent8758221e7344645bc1357578ec1789aa7d46da08 (diff)
Make bookmarks also searchable (#13271)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb2
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