#13 Turn searchability private if account is silenced
This commit is contained in:
parent
8a3f2ee0fb
commit
3dded2809f
2 changed files with 11 additions and 1 deletions
|
@ -427,6 +427,7 @@ class Status < ApplicationRecord
|
|||
def compute_searchability
|
||||
local = account.local?
|
||||
|
||||
return 'private' if public_searchability? && account.silenced?
|
||||
return 'direct' if unsupported_searchability?
|
||||
return searchability if local && !searchability.nil?
|
||||
return 'direct' if local || [:public, :private, :direct, :limited].exclude?(account.searchability.to_sym)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue