mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Add quoted_update notification type (#35820)
This commit is contained in:
parent
7aba79ade9
commit
f3a932d8a1
12 changed files with 117 additions and 6 deletions
|
|
@ -99,6 +99,12 @@ class FanOutOnWriteService < BaseService
|
|||
[account.id, @status.id, 'Status', 'update']
|
||||
end
|
||||
end
|
||||
|
||||
@status.quotes.accepted.find_in_batches do |quotes|
|
||||
LocalNotificationWorker.push_bulk(quotes) do |quote|
|
||||
[quote.account_id, quote.status_id, 'Status', 'quoted_update']
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def deliver_to_all_followers!
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ class NotifyService < BaseService
|
|||
admin.report
|
||||
admin.sign_up
|
||||
update
|
||||
quoted_update
|
||||
poll
|
||||
status
|
||||
moderation_warning
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue