From 3b0bc18db928c455186273d9b9aa5b96d91e035e Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 23 Feb 2016 13:08:01 +0100 Subject: Improved Atom rendering templates, added README --- app/services/process_feed_service.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (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 f2523a313..f77415a30 100644 --- a/app/services/process_feed_service.rb +++ b/app/services/process_feed_service.rb @@ -6,7 +6,7 @@ class ProcessFeedService uri = entry.at_xpath('./xmlns:id').content status = Status.find_by(uri: uri) - next unless status.nil? + next if !status.nil? status = Status.new status.account = account @@ -15,6 +15,9 @@ class ProcessFeedService status.created_at = entry.at_xpath('./xmlns:published').content status.updated_at = entry.at_xpath('./xmlns:updated').content status.save! + + # todo: not everything is a status. there are follows, favourites + # todo: RTs end end end -- cgit