mirror of https://github.com/mastodon/mastodon
Add mute.created webhook
This commit is contained in:
parent
f41f320985
commit
6c48024a87
|
@ -6,6 +6,8 @@ class MuteService < BaseService
|
|||
|
||||
mute = account.mute!(target_account, notifications: notifications, duration: duration)
|
||||
|
||||
TriggerWebhookWorker.perform_async('mute.created', 'Mute', mute.id)
|
||||
|
||||
if mute.hide_notifications?
|
||||
BlockWorker.perform_async(account.id, target_account.id)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue