]> cat aescling's git repositories - mastodon.git/commitdiff
Make bookmarks also searchable (#13271)
authorJeong Arm <kjwonmail@gmail.com>
Sat, 21 Mar 2020 02:14:10 +0000 (11:14 +0900)
committerGitHub <noreply@github.com>
Sat, 21 Mar 2020 02:14:10 +0000 (03:14 +0100)
app/models/status.rb

index 8e040f0e6e06a93f75c085aaa93ac72a076562f7..ff653100a9755c9f6d8fe6289f75c7a8de7231ce 100644 (file)
@@ -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