Skip to content
Snippets Groups Projects
Commit 484208ce authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

When status is fetched instead of delivered, do not stream it (#5437)

parent 3bc89249
No related branches found
No related tags found
No related merge requests found
......@@ -67,9 +67,14 @@ class ActivityPub::Activity
end
def distribute(status)
crawl_links(status)
# Only continue if the status is supposed to have
# arrived in real-time
return unless @options[:override_timestamps]
notify_about_reblog(status) if reblog_of_local_account?(status)
notify_about_mentions(status)
crawl_links(status)
distribute_to_followers(status)
end
......
......@@ -56,7 +56,7 @@ class OStatus::Activity::Creation < OStatus::Activity::Base
Rails.logger.debug "Queuing remote status #{status.id} (#{id}) for distribution"
LinkCrawlWorker.perform_async(status.id) unless status.spoiler_text?
DistributionWorker.perform_async(status.id)
DistributionWorker.perform_async(status.id) if @options[:override_timestamps]
status
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment