From 47d50b0e3967f1d396bdbe8ea3e8909ce2be599f Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 28 Feb 2016 15:46:29 +0100 Subject: A lot of fixes from a live test --- app/services/process_feed_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/services/process_feed_service.rb') diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb index 1c85942f3..146869552 100644 --- a/app/services/process_feed_service.rb +++ b/app/services/process_feed_service.rb @@ -10,7 +10,7 @@ class ProcessFeedService < BaseService end xml.xpath('//xmlns:entry').each do |entry| - next unless [:note, :comment, :activity].includes? object_type(entry) + next unless [:note, :comment, :activity].include? object_type(entry) status = Status.find_by(uri: activity_id(entry)) @@ -88,7 +88,7 @@ class ProcessFeedService < BaseService end def thread_id(xml) - xml.at_xpath('./thr:in-reply-to-id').attribute('ref').value + xml.at_xpath('./thr:in-reply-to').attribute('ref').value rescue nil end -- cgit