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:
parent
b7fd238e1c
commit
706dab1d11
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue