Fix: 連合リレー判定に、フレンドサーバーのチェックを追加 (#670)

This commit is contained in:
KMY(雪あすか) 2024-04-16 12:07:48 +09:00 committed by GitHub
parent 8c5d3e08af
commit 78b2707c08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,7 +169,8 @@ class ActivityPub::Activity
end end
def requested_through_relay? 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 end
def reject_payload! def reject_payload!