0
0
Fork 0

Change relays handling to not record boosts (#17571)

* Change relays handling to not record boosts

* Update tests
This commit is contained in:
Claire 2022-02-16 14:36:44 +01:00 committed by GitHub
parent 73fce8d311
commit 8f537a1168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 20 deletions

View file

@ -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)