about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-22 19:11:07 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-22 19:11:07 +0100
commit2bc48e9064c56101d1761a10d8c5badba60d2bbe (patch)
treec186943465a7e455274314c19f4eba892119ede5 /app/services
parent1dad72bf13f5e28781a2b2b6654f72624d205576 (diff)
Individual atom entries
Diffstat (limited to 'app/services')
-rw-r--r--app/services/process_interaction_service.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb
index 8262ead8f..e95a488d1 100644
--- a/app/services/process_interaction_service.rb
+++ b/app/services/process_interaction_service.rb
@@ -3,7 +3,7 @@ class ProcessInteractionService
     body = salmon.unpack(envelope)
     xml  = Nokogiri::XML(body)
 
-    return if xml.at_xpath('//author/name').nil? || xml.at_xpath('//author/uri').nil?
+    return if !involves_target_account(xml, target_account) || xml.at_xpath('//author/name').nil? || xml.at_xpath('//author/uri').nil?
 
     username = xml.at_xpath('//author/name').content
     url      = xml.at_xpath('//author/uri').content
@@ -28,6 +28,9 @@ class ProcessInteractionService
 
   private
 
+  def involves_target_account(target_account)
+  end
+
   def salmon
     OStatus2::Salmon.new
   end