Change: #737 tanukeyなど小規模Misskeyフォークも、対Misskey配送制限設定対象にする (#823)

* Change: #737 tanukeyなど小規模Misskeyフォークも、対Misskey配送制限設定対象にする

* Fix test

* Add cache

* Remove caches
This commit is contained in:
KMY(雪あすか) 2024-08-28 17:36:27 +09:00 committed by GitHub
parent ae0d35a4fe
commit a7d9fd1e56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 88 additions and 42 deletions

View file

@ -220,7 +220,7 @@ class StatusReachFinder
def banned_domains_for_misskey_of_status(status)
return [] if status.public_searchability?
from_info = InstanceInfo.where(software: %w(misskey calckey cherrypick sharkey)).pluck(:domain)
from_info = InstanceInfo.where(software: InstanceInfo::INVALID_SUBSCRIPTION_SOFTWARES).pluck(:domain)
from_domain_block = DomainBlock.where(detect_invalid_subscription: true).pluck(:domain)
(from_info + from_domain_block).uniq
end