mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 00:11:35 +01:00
parent
319bce3d9d
commit
e86663b1da
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue