Add mute.created webhook

This commit is contained in:
CSDUMMI 2024-01-09 18:25:13 +01:00
parent f41f320985
commit 6c48024a87
1 changed files with 2 additions and 0 deletions

View File

@ -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