]> cat aescling's git repositories - mastodon.git/commitdiff
Fix enclosures not being parsed for reblogged statuses
authorEugen <eugen@zeonfederated.com>
Tue, 6 Sep 2016 10:30:15 +0000 (12:30 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Sep 2016 10:30:15 +0000 (12:30 +0200)
app/services/process_feed_service.rb

index 0dd22fa2282f8ec086366f5da48164076bdfdd1b..97033a0047b0d60f5d5a8369d4a019eaa34493eb 100644 (file)
@@ -36,9 +36,13 @@ class ProcessFeedService < BaseService
     end
 
     # If we added a status, go through accounts it mentions and create respective relations
+    # Also record all media attachments for the status and for the reblogged status if present
     unless status.new_record?
       record_remote_mentions(status, entry.xpath('./xmlns:link[@rel="mentioned"]'))
+      
       process_attachments(entry, status)
+      process_attachments(entry.xpath('./activity:object'), status.reblog) if status.reblog?
+      
       DistributionWorker.perform_async(status.id)
     end
   end