Fix not searchable in fedibird
This commit is contained in:
parent
c382e94c8d
commit
7e40c6ca4d
2 changed files with 5 additions and 1 deletions
|
@ -233,7 +233,7 @@ class ActivityPub::TagManager
|
||||||
end
|
end
|
||||||
|
|
||||||
def account_searchable_by(account)
|
def account_searchable_by(account)
|
||||||
case account.searchability
|
case account.compute_searchability_activitypub
|
||||||
when 'public'
|
when 'public'
|
||||||
[COLLECTIONS[:public]]
|
[COLLECTIONS[:public]]
|
||||||
when 'private', 'direct'
|
when 'private', 'direct'
|
||||||
|
|
|
@ -530,6 +530,10 @@ class Account < ApplicationRecord
|
||||||
save!
|
save!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def compute_searchability_activitypub
|
||||||
|
local? ? 'public' : searchability
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def prepare_contents
|
def prepare_contents
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue