diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-10 15:27:39 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-10 15:27:39 +0200 |
commit | 3306a5d5242663e2407461e8e1537e60f97144c4 (patch) | |
tree | 19296d11d28bfda428bf2de4a34c882afdc4b5d8 /app/services | |
parent | dd5e724c3ffb8d7dc5fac701c5f4c38ee41588d8 (diff) |
Improve process feed service
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/process_feed_service.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb index 4ed0bf0bb..ff626a0f1 100644 --- a/app/services/process_feed_service.rb +++ b/app/services/process_feed_service.rb @@ -34,12 +34,15 @@ class ProcessFeedService < BaseService else add_reply!(entry, status) end + else + return 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"]')) + record_remote_mentions(status.reblog, entry.xpath('./activity:object/xmlns:link[@rel="mentioned"]')) if status.reblog? process_attachments(entry, status) process_attachments(entry.xpath('./activity:object'), status.reblog) if status.reblog? |