diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-20 00:39:03 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-20 00:43:36 +0200 |
commit | 059ebbf48dc56971b88e26a15303a75643de8b98 (patch) | |
tree | f0d46b941f298912094fe5a87b192d6fa8d4d304 /app/services/process_interaction_service.rb | |
parent | 1245ee42fb9f689ffa4956f42f44a7ab75e19075 (diff) |
Separate PuSH subscriptions from following, add mastodon:push:refresh task,
respect hub.lease_seconds (fix #46)
Diffstat (limited to 'app/services/process_interaction_service.rb')
-rw-r--r-- | app/services/process_interaction_service.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb index 3266f73e3..1e3ed6b12 100644 --- a/app/services/process_interaction_service.rb +++ b/app/services/process_interaction_service.rb @@ -14,7 +14,7 @@ class ProcessInteractionService < BaseService account = Account.find_by(username: username, domain: domain) if account.nil? - account = follow_remote_account_service.("#{username}@#{domain}", false) + account = follow_remote_account_service.("#{username}@#{domain}") end if salmon.verify(envelope, account.keypair) @@ -71,7 +71,7 @@ class ProcessInteractionService < BaseService return if status.nil? if account.id == status.account_id - RemoveStatusService.new.(status) + remove_status_service.(status) end end @@ -108,4 +108,8 @@ class ProcessInteractionService < BaseService def update_remote_profile_service @update_remote_profile_service ||= UpdateRemoteProfileService.new end + + def remove_status_service + @remove_status_service ||= RemoveStatusService.new + end end |