Improve code style
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user