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

@ -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