Skip to content
Extraits de code Groupes Projets
Valider 1efa8e48 rédigé par Eugen's avatar Eugen Validation de GitHub
Parcourir les fichiers

Fix enclosures not being parsed for reblogged statuses

parent aca988a1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -36,9 +36,13 @@ class ProcessFeedService < BaseService ...@@ -36,9 +36,13 @@ class ProcessFeedService < BaseService
end end
# If we added a status, go through accounts it mentions and create respective relations # 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? unless status.new_record?
record_remote_mentions(status, entry.xpath('./xmlns:link[@rel="mentioned"]')) record_remote_mentions(status, entry.xpath('./xmlns:link[@rel="mentioned"]'))
process_attachments(entry, status) process_attachments(entry, status)
process_attachments(entry.xpath('./activity:object'), status.reblog) if status.reblog?
DistributionWorker.perform_async(status.id) DistributionWorker.perform_async(status.id)
end end
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter