Fix: 連合リレー判定に、フレンドサーバーのチェックを追加 (#670)
This commit is contained in:
parent
8c5d3e08af
commit
78b2707c08
1 changed files with 2 additions and 1 deletions
|
@ -169,7 +169,8 @@ class ActivityPub::Activity
|
|||
end
|
||||
|
||||
def requested_through_relay?
|
||||
@options[:relayed_through_actor] && Relay.find_by(inbox_url: @options[:relayed_through_actor].inbox_url)&.enabled?
|
||||
@options[:relayed_through_actor] &&
|
||||
(Relay.find_by(inbox_url: @options[:relayed_through_actor].inbox_url)&.enabled? || FriendDomain.free_receivings.exists?(inbox_url: @options[:relayed_through_actor].inbox_url))
|
||||
end
|
||||
|
||||
def reject_payload!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue