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_interaction_service.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/services/process_interaction_service.rb') 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