about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-04-25 17:09:32 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-04-25 17:09:32 +0200
commit002d2729fb342ec899d4322bbd64331da7d22a03 (patch)
tree2316623ed73758bd1d61477d94aee3492744933c /app/models/status.rb
parentbb12af7250c9368905bae7d91c6ff0b06f3aa400 (diff)
parentf47a9ddc9ffca22258ec9e4b12ca51db8cac1eac (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models/status.rb')
-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 9eaf85668..cc7ee568f 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -150,11 +150,13 @@ class Status < ApplicationRecord
       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)
+      ids += poll.votes.where(account: Account.local).pluck(:account_id) if poll.present?
     else
       ids += preloaded.mentions[id] || []
       ids += preloaded.favourites[id] || []
       ids += preloaded.reblogs[id] || []
       ids += preloaded.bookmarks[id] || []
+      ids += preloaded.votes[id] || []
     end
 
     ids.uniq