Skip to content
Snippets Groups Projects
Unverified Commit e86663b1 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix alternative relay support regression (#10398)

Fix #10324
parent 319bce3d
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,10 @@ class ActivityPub::Activity::Announce < ActivityPub::Activity
followed_by_local_accounts? || requested_through_relay? || reblog_of_local_status?
end
def requested_through_relay?
super || Relay.find_by(inbox_url: @account.inbox_url)&.enabled?
end
def reblog_of_local_status?
status_from_uri(object_uri)&.account&.local?
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment