diff --git a/app/services/unblock_service.rb b/app/services/unblock_service.rb index 1dcab218249..9cfcb2ecc5b 100644 --- a/app/services/unblock_service.rb +++ b/app/services/unblock_service.rb @@ -8,7 +8,10 @@ class UnblockService < BaseService unblock = account.unblock!(target_account) - TriggerWebhookWithObjectWorker.perform_async('block.removed', Oj.to_json({ 'account_id': unblock.account_id, 'target_account_id': unblock.target_account_id, 'id': unblock.id })) + TriggerWebhookWithObjectWorker.perform_async('block.removed', + Oj.to_json({ account_id: unblock.account_id, + target_account_id: unblock.target_account_id, + id: unblock.id })) create_notification(unblock) if !target_account.local? && target_account.activitypub? unblock diff --git a/app/services/unfollow_service.rb b/app/services/unfollow_service.rb index 1d8ec992cb6..d69d5951364 100644 --- a/app/services/unfollow_service.rb +++ b/app/services/unfollow_service.rb @@ -29,7 +29,10 @@ class UnfollowService < BaseService follow.destroy! - TriggerWebhookWithObjectWorker.perform_async('follow.removed', Oj.to_json({ 'account_id': follow.account_id, 'target_account_id': follow.target_account_id, 'id': follow.id })) + TriggerWebhookWithObjectWorker.perform_async('follow.removed', + Oj.to_json({ account_id: follow.account_id, + target_account_id: follow.target_account_id, + id: follow.id })) create_notification(follow) if !@target_account.local? && @target_account.activitypub? create_reject_notification(follow) if @target_account.local? && !@source_account.local? && @source_account.activitypub?