]> cat aescling's git repositories - mastodon.git/commitdiff
Process mentions and reblogs even from resolved threads (#6299)
authorThibG <thib@sitedethib.com>
Fri, 19 Jan 2018 18:11:35 +0000 (19:11 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 19 Jan 2018 18:11:35 +0000 (19:11 +0100)
This may lead to out-of-order notifications, but this is better than not having
notifications at all.

app/lib/activitypub/activity.rb

index 820189d29c96ba7383ce69e21f802d212bad3d47..0f9e4f26303beaa1e523ca7d325a1942cfaf609a 100644 (file)
@@ -69,12 +69,13 @@ class ActivityPub::Activity
   def distribute(status)
     crawl_links(status)
 
+    notify_about_reblog(status) if reblog_of_local_account?(status)
+    notify_about_mentions(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)
     distribute_to_followers(status)
   end