Improve code style
This commit is contained in:
parent
e4aebad35a
commit
927333f4f8
41 changed files with 126 additions and 122 deletions
|
@ -3,7 +3,7 @@ class FollowService < BaseService
|
|||
# @param [Account] source_account From which to follow
|
||||
# @param [String] uri User URI to follow in the form of username@domain
|
||||
def call(source_account, uri)
|
||||
target_account = follow_remote_account_service.(uri)
|
||||
target_account = follow_remote_account_service.call(uri)
|
||||
|
||||
return nil if target_account.nil? || target_account.id == source_account.id
|
||||
|
||||
|
@ -12,7 +12,7 @@ class FollowService < BaseService
|
|||
if target_account.local?
|
||||
NotificationMailer.follow(target_account, source_account).deliver_later
|
||||
else
|
||||
subscribe_service.(target_account)
|
||||
subscribe_service.call(target_account)
|
||||
NotificationWorker.perform_async(follow.stream_entry.id, target_account.id)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue