Fix searchability values
This commit is contained in:
parent
af7c325998
commit
60d54b847e
2 changed files with 7 additions and 2 deletions
|
@ -77,7 +77,7 @@ class PostStatusService < BaseService
|
|||
def searchability
|
||||
case @options[:searchability]&.to_sym
|
||||
when :public
|
||||
case @visibility&.to_sym when :public, :public_unlisted then :public when :unlisted, :private then :private else :direct end
|
||||
case @visibility&.to_sym when :public, :public_unlisted then :public when :unlisted then :unlisted when :private then :private else :direct end
|
||||
when :unlisted
|
||||
case @visibility&.to_sym when :public, :public_unlisted, :unlisted then :unlisted when :private then :private else :direct end
|
||||
when :private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue