From 39cc9fde8a2e34da0639d83688d4d6d6d6240382 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 5 Dec 2016 22:59:30 +0100 Subject: Add account suspension --- app/services/process_feed_service.rb | 2 ++ app/services/process_interaction_service.rb | 2 ++ 2 files changed, 4 insertions(+) (limited to 'app/services') diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb index 3aa0ceff8..1a831fa73 100644 --- a/app/services/process_feed_service.rb +++ b/app/services/process_feed_service.rb @@ -93,6 +93,8 @@ class ProcessFeedService < BaseService account = @account end + return if account.suspended? + status = Status.create!( uri: id(entry), url: url(entry), diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb index 129b2a2be..4e5487681 100644 --- a/app/services/process_interaction_service.rb +++ b/app/services/process_interaction_service.rb @@ -23,6 +23,8 @@ class ProcessInteractionService < BaseService account = follow_remote_account_service.call("#{username}@#{domain}") end + return if account.suspended? + if salmon.verify(envelope, account.keypair) update_remote_profile_service.call(xml.at_xpath('/xmlns:entry', xmlns: TagManager::XMLNS), account, true) -- cgit