1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Fix style issue using symbols

This commit is contained in:
CSDUMMI 2024-08-04 12:17:29 +02:00
parent b7fd238e1c
commit 706dab1d11
2 changed files with 8 additions and 2 deletions

View file

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

View file

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