Change: #230 非収載投稿で「ローカルとフォロワー」検索許可を「フォロワーのみ」に変換 (#379)

This commit is contained in:
KMY(雪あすか) 2023-12-25 10:02:27 +09:00 committed by GitHub
parent 659624bc7e
commit 95ae2679db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -129,7 +129,7 @@ class PostStatusService < BaseService
end
def searchability
return :private if @options[:searchability]&.to_sym == :public && @visibility&.to_sym == :unlisted && @account.user&.setting_disallow_unlisted_public_searchability
return :private if %i(public public_unlisted).include?(@options[:searchability]&.to_sym) && @visibility&.to_sym == :unlisted && @account.user&.setting_disallow_unlisted_public_searchability
case @options[:searchability]&.to_sym
when :public