]> cat aescling's git repositories - mastodon.git/commitdiff
Don't return unsaved status from ProcessFeedService
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 10 Oct 2016 14:49:05 +0000 (16:49 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 10 Oct 2016 14:49:05 +0000 (16:49 +0200)
app/services/process_feed_service.rb

index efe40adeac566b80a6ff569e5ba882f170bd242f..5b5800f16ec8c483396415e509fc08f480e589f7 100644 (file)
@@ -48,9 +48,8 @@ class ProcessFeedService < BaseService
       process_attachments(entry.xpath('./activity:object'), status.reblog) if status.reblog?
 
       DistributionWorker.perform_async(status.id)
+      return status
     end
-
-    return status
   end
 
   def record_remote_mentions(status, links)