summaryrefslogtreecommitdiffstats
path: root/app/services/process_interaction_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-29 21:28:21 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-29 21:28:21 +0200
commit927333f4f89403c5a6a2b421065112e517d88193 (patch)
tree1767e142ee9263b5b6968b5b43228ee0889232c5 /app/services/process_interaction_service.rb
parente4aebad35afae12f4b7503fb6c3783fcd3809761 (diff)
Improve code style
Diffstat (limited to 'app/services/process_interaction_service.rb')
-rw-r--r--app/services/process_interaction_service.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb
index 1e3ed6b1279..96dae30da32 100644
--- a/app/services/process_interaction_service.rb
+++ b/app/services/process_interaction_service.rb
@@ -14,11 +14,11 @@ class ProcessInteractionService < BaseService
account = Account.find_by(username: username, domain: domain)
if account.nil?
- account = follow_remote_account_service.("#{username}@#{domain}")
+ account = follow_remote_account_service.call("#{username}@#{domain}")
end
if salmon.verify(envelope, account.keypair)
- update_remote_profile_service.(xml.at_xpath('/xmlns:entry/xmlns:author'), account)
+ update_remote_profile_service.call(xml.at_xpath('/xmlns:entry/xmlns:author'), account)
case verb(xml)
when :follow
@@ -71,7 +71,7 @@ class ProcessInteractionService < BaseService
return if status.nil?
if account.id == status.account_id
- remove_status_service.(status)
+ remove_status_service.call(status)
end
end
@@ -82,7 +82,7 @@ class ProcessInteractionService < BaseService
end
def add_post!(body, account)
- process_feed_service.(body, account)
+ process_feed_service.call(body, account)
end
def status(xml)