0
0
Fork 0

Improved Atom rendering templates, added README

This commit is contained in:
Eugen Rochko 2016-02-23 13:08:01 +01:00
parent 2bc48e9064
commit 3b0bc18db9
8 changed files with 180 additions and 100 deletions

View file

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