Improved Atom rendering templates, added README
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user