about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-20 18:31:49 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-20 18:31:49 +0100
commit05abd977c1ace4931ea679059cd600ed41337a1c (patch)
treeb6a8ded552bc332f7dc78123339a1622d2ecee9c /app/services
parentf4e28785f1be40b67812bf0711e78a5f229c4eed (diff)
Fix preview cards layout, do preview card crawling for remote statuses
Diffstat (limited to 'app/services')
-rw-r--r--app/services/process_feed_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb
index cc35e65b8..4466abda3 100644
--- a/app/services/process_feed_service.rb
+++ b/app/services/process_feed_service.rb
@@ -45,7 +45,7 @@ class ProcessFeedService < BaseService
       status = status_from_xml(@xml)
 
       return if status.nil?
-      
+
       if verb == :share
         original_status = status_from_xml(@xml.at_xpath('.//activity:object', activity: TagManager::AS_XMLNS))
         status.reblog   = original_status
@@ -61,6 +61,7 @@ class ProcessFeedService < BaseService
       status.save!
 
       NotifyService.new.call(status.reblog.account, status) if status.reblog? && status.reblog.account.local?
+      LinkCrawlWorker.perform_async(status.reblog? ? status.reblog_of_id : status.id)
       Rails.logger.debug "Queuing remote status #{status.id} (#{id}) for distribution"
       DistributionWorker.perform_async(status.id)
       status