From 706dab1d11640224bf5d3f6757c34f552e72d2a4 Mon Sep 17 00:00:00 2001 From: CSDUMMI Date: Sun, 4 Aug 2024 12:17:29 +0200 Subject: [PATCH] Fix style issue using symbols --- app/services/unblock_service.rb | 5 ++++- app/services/unfollow_service.rb | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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?