summaryrefslogtreecommitdiffstats
path: root/app/services/process_interaction_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-16 21:14:39 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-16 21:14:39 +0100
commit086d4871451a0d609f539235e9b3da87279f5008 (patch)
tree082bc2778e4f708b3cd4dfc8c9872d062ca6ce58 /app/services/process_interaction_service.rb
parent9cb690c70690bcebba69d3b66fb0b90e798d477d (diff)
Fix unfollows
Diffstat (limited to 'app/services/process_interaction_service.rb')
-rw-r--r--app/services/process_interaction_service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb
index 30cf5a77146..877647bbe93 100644
--- a/app/services/process_interaction_service.rb
+++ b/app/services/process_interaction_service.rb
@@ -21,6 +21,8 @@ class ProcessInteractionService < BaseService
if salmon.verify(envelope, account.keypair)
update_remote_profile_service.(xml.at_xpath('/xmlns:entry/xmlns:author'), account)
+ binding.pry
+
case verb(xml)
when :follow
follow!(account, target_account)
@@ -48,7 +50,7 @@ class ProcessInteractionService < BaseService
end
def verb(xml)
- xml.at_xpath('//activity:verb').content.gsub('http://activitystrea.ms/schema/1.0/', '').to_sym
+ xml.at_xpath('//activity:verb').content.gsub('http://activitystrea.ms/schema/1.0/', '').gsub('http://ostatus.org/schema/1.0/', '').to_sym
rescue
:post
end