From 1efa8e48d1cbf26715a764a9f4acf1b848a9f740 Mon Sep 17 00:00:00 2001 From: Eugen Date: Tue, 6 Sep 2016 12:30:15 +0200 Subject: [PATCH] Fix enclosures not being parsed for reblogged statuses --- app/services/process_feed_service.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb index 0dd22fa2282..97033a0047b 100644 --- a/app/services/process_feed_service.rb +++ b/app/services/process_feed_service.rb @@ -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