diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-04-25 17:09:32 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-04-25 17:09:32 +0200 |
commit | 002d2729fb342ec899d4322bbd64331da7d22a03 (patch) | |
tree | 2316623ed73758bd1d61477d94aee3492744933c /app/models | |
parent | bb12af7250c9368905bae7d91c6ff0b06f3aa400 (diff) | |
parent | f47a9ddc9ffca22258ec9e4b12ca51db8cac1eac (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
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 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 |