diff options
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/process_feed_service.rb | 5 | ||||
-rw-r--r-- | app/services/process_interaction_service.rb | 1 |
2 files changed, 5 insertions, 1 deletions
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 diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb index e95a488d1..6f9b7cf73 100644 --- a/app/services/process_interaction_service.rb +++ b/app/services/process_interaction_service.rb @@ -29,6 +29,7 @@ class ProcessInteractionService private def involves_target_account(target_account) + # todo end def salmon |