Improved Atom rendering templates, added README
This commit is contained in:
parent
2bc48e9064
commit
3b0bc18db9
8 changed files with 180 additions and 100 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue