Skip to content

Commit

Permalink
Change: #230 非収載投稿で「ローカルとフォロワー」検索許可を「フォロワーのみ」に変換 (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode authored Dec 25, 2023
1 parent 659624b commit 95ae267
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/services/post_status_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def process_sensitive_words
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
Expand Down
2 changes: 1 addition & 1 deletion config/locales/simple_form.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ en:
setting_default_sensitive: Always mark media as sensitive
setting_delete_modal: Show confirmation dialog before deleting a post
setting_disable_swiping: Disable swiping motions
setting_disallow_unlisted_public_searchability: Disallow everyone searchability when unlisted visibility
setting_disallow_unlisted_public_searchability: Disallow everyone or local searchability when unlisted visibility
setting_display_media: Media display
setting_display_media_default: Default
setting_display_media_expand: Show more medias
Expand Down
2 changes: 1 addition & 1 deletion config/locales/simple_form.ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ ja:
setting_default_sensitive: メディアを常に閲覧注意としてマークする
setting_delete_modal: 投稿を削除する前に確認ダイアログを表示する
setting_disable_swiping: スワイプでの切り替えを無効にする
setting_disallow_unlisted_public_searchability: 未収載投稿の検索許可が「誰でも」だった場合、「フォロワーのみ」に変更する
setting_disallow_unlisted_public_searchability: 非収載投稿の検索許可が「誰でも」「ローカルとフォロワー」だった場合、「フォロワーのみ」に変更する
setting_display_media: メディアの表示
setting_display_media_default: 標準
setting_display_media_expand: 5個目以降のメディアも表示する (最大16)
Expand Down

0 comments on commit 95ae267

Please sign in to comment.