Add: #136 自分が引用した投稿が編集されたときに通知 (#157)

This commit is contained in:
KMY(雪あすか) 2023-10-21 10:16:10 +09:00 committed by GitHub
parent 89ef448d3a
commit d789304e19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 2 deletions

View file

@ -89,7 +89,7 @@ class FanOutOnWriteService < BaseService
end
def notify_about_update!
@status.reblogged_by_accounts.merge(Account.local).select(:id).reorder(nil).find_in_batches do |accounts|
@status.reblogged_by_accounts.or(@status.quoted_by_accounts).merge(Account.local).select(:id).reorder(nil).find_in_batches do |accounts|
LocalNotificationWorker.push_bulk(accounts) do |account|
[account.id, @status.id, 'Status', 'update']
end