Browse Source

Fix enclosures not being parsed for reblogged statuses

closed-social-glitch-2
Eugen 7 years ago
committed by GitHub
parent
commit
1efa8e48d1
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/services/process_feed_service.rb

+ 4
- 0
app/services/process_feed_service.rb View 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

Loading…
Cancel
Save