about summary refs log tree commit diff
path: root/app/lib/activitypub
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-02-17 14:28:48 +0100
committerGitHub <noreply@github.com>2018-02-17 14:28:48 +0100
commita71af984011ff98df2fa1b7f6c983706a91d99bf (patch)
treef949ab587ba0d65ad0c08a3417f8d5110c53ca6a /app/lib/activitypub
parenta7c50c7abab98b3db0b89e3b2fe78abe0dc9789c (diff)
Push discovered status through streaming API within a time window (#6484)
Time window of 6 hours
Diffstat (limited to 'app/lib/activitypub')
-rw-r--r--app/lib/activitypub/activity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb
index 0f9e4f263..4617905c6 100644
--- a/app/lib/activitypub/activity.rb
+++ b/app/lib/activitypub/activity.rb
@@ -74,7 +74,7 @@ class ActivityPub::Activity
 
     # Only continue if the status is supposed to have
     # arrived in real-time
-    return unless @options[:override_timestamps]
+    return unless @options[:override_timestamps] || status.within_realtime_window?
 
     distribute_to_followers(status)
   end