Remove: 現在使われていないドメインブロック無視設定のデッドコード (#476)

* Remove: 現在使われていないドメインブロック無視設定のデッドコード

* Refactoring

* Fix test
This commit is contained in:
KMY(雪あすか) 2024-01-19 08:39:58 +09:00 committed by GitHub
parent 46161e5348
commit 989efcd78e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 36 additions and 33 deletions

View file

@ -153,7 +153,7 @@ class ActivityPub::TagManager
end
def cc_for_misskey(status)
if (status.account.user&.setting_reject_unlisted_subscription && status.unlisted_visibility?) || (status.account.user&.setting_reject_public_unlisted_subscription && status.public_unlisted_visibility?)
if status.sending_maybe_compromised_privacy?
cc = cc_private_visibility(status)
cc << uri_for(status.reblog.account) if status.reblog?
return cc