about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-16 14:36:44 +0100
committerGitHub <noreply@github.com>2022-02-16 14:36:44 +0100
commit8f537a116802ee39727d8b6c286883b9440ab51a (patch)
tree129d2eba9f78306a4116e794169bab8201153758 /app/lib
parent73fce8d31115f44d6d3f20f563c656b1595e70f8 (diff)
Change relays handling to not record boosts (#17571)
* Change relays handling to not record boosts

* Update tests
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/activitypub/activity/announce.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity/announce.rb b/app/lib/activitypub/activity/announce.rb
index 1f9319290..12fad8da4 100644
--- a/app/lib/activitypub/activity/announce.rb
+++ b/app/lib/activitypub/activity/announce.rb
@@ -8,6 +8,7 @@ class ActivityPub::Activity::Announce < ActivityPub::Activity
       original_status = status_from_object
 
       return reject_payload! if original_status.nil? || !announceable?(original_status)
+      return if requested_through_relay?
 
       @status = Status.find_by(account: @account, reblog: original_status)