Set mark searchability unlisted as activitypub note
This commit is contained in:
parent
62036efc79
commit
004129dfbb
2 changed files with 6 additions and 1 deletions
|
@ -188,7 +188,7 @@ class ActivityPub::TagManager
|
||||||
|
|
||||||
def searchable_by(status)
|
def searchable_by(status)
|
||||||
searchable_by =
|
searchable_by =
|
||||||
case status.compute_searchability
|
case status.compute_searchability_activitypub
|
||||||
when 'public'
|
when 'public'
|
||||||
[COLLECTIONS[:public]]
|
[COLLECTIONS[:public]]
|
||||||
when 'unlisted' # Followers only in kmyblue (generics: private)
|
when 'unlisted' # Followers only in kmyblue (generics: private)
|
||||||
|
|
|
@ -383,6 +383,11 @@ class Status < ApplicationRecord
|
||||||
'private'
|
'private'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def compute_searchability_activitypub
|
||||||
|
return 'unlisted' if public_unlisted_visibility? && public_searchability?
|
||||||
|
compute_searchability
|
||||||
|
end
|
||||||
|
|
||||||
after_create_commit :increment_counter_caches
|
after_create_commit :increment_counter_caches
|
||||||
after_destroy_commit :decrement_counter_caches
|
after_destroy_commit :decrement_counter_caches
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue