#15 Add misskey fork indexable support

This commit is contained in:
KMY 2023-09-25 19:39:05 +09:00
parent 385ac0c1a2
commit 2f21aa5193
3 changed files with 50 additions and 1 deletions

View file

@ -265,7 +265,7 @@ class ActivityPub::ProcessAccountService < BaseService
bio = searchability_from_bio
return bio unless bio.nil?
return misskey_software? ? :public : :direct
return misskey_software? ? misskey_searchability_from_indexable : :direct
end
if audience_searchable_by.any? { |uri| ActivityPub::TagManager.instance.public_collection?(uri) }
@ -297,6 +297,12 @@ class ActivityPub::ProcessAccountService < BaseService
searchability
end
def misskey_searchability_from_indexable
return :public if @json['indexable'].nil?
@json['indexable'] ? :public : :limited
end
def instance_info
@instance_info ||= InstanceInfo.find_by(domain: @domain)
end