0
0
Fork 0

Individual atom entries

This commit is contained in:
Eugen Rochko 2016-02-22 19:11:07 +01:00
parent 1dad72bf13
commit 2bc48e9064
6 changed files with 69 additions and 5 deletions

View file

@ -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