about summary refs log tree commit diff
path: root/app/lib/activitypub
diff options
context:
space:
mode:
authorbeatrix <beatrix.bitrot@gmail.com>2017-10-18 17:57:42 -0400
committerGitHub <noreply@github.com>2017-10-18 17:57:42 -0400
commitc75665127878f41af2547b12b8723963c04d305b (patch)
treed8275432c259d0fcd1385c163d7f2472b4a8684c /app/lib/activitypub
parent4421f6598f5883908fb25743977306f19a0b0f0f (diff)
parenteb907a5babed83a73788b16772fb2cba6db8c2b4 (diff)
Merge pull request #188 from glitch-soc/merge-upstream-2-0-0
Merge with upstream v2.0.0
Diffstat (limited to 'app/lib/activitypub')
-rw-r--r--app/lib/activitypub/activity.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb
index 9688f57a6..01144f595 100644
--- a/app/lib/activitypub/activity.rb
+++ b/app/lib/activitypub/activity.rb
@@ -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