Set mark searchability unlisted as activitypub note

This commit is contained in:
KMY 2023-04-16 09:55:21 +09:00
parent 62036efc79
commit 004129dfbb
2 changed files with 6 additions and 1 deletions

View file

@ -188,7 +188,7 @@ class ActivityPub::TagManager
def searchable_by(status)
searchable_by =
case status.compute_searchability
case status.compute_searchability_activitypub
when 'public'
[COLLECTIONS[:public]]
when 'unlisted' # Followers only in kmyblue (generics: private)

View file

@ -383,6 +383,11 @@ class Status < ApplicationRecord
'private'
end
def compute_searchability_activitypub
return 'unlisted' if public_unlisted_visibility? && public_searchability?
compute_searchability
end
after_create_commit :increment_counter_caches
after_destroy_commit :decrement_counter_caches