Add a new profile option to filter posts with undescribed media. At some point, figure out how to put this under Filters, even if it angers the MVC model gods. No gods, no masters.

master
multiple creatures 2019-11-17 21:39:33 -06:00
parent afe4b6b6ad
commit 9d4a4efa7a
3 changed files with 8 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Settings::ProfilesController < Settings::BaseController
private
def account_params
params.require(:account).permit(:display_name, :note, :avatar, :header, :replies, :locked, :hidden, :unlisted, :block_anon, :gently, :kobold, :adult_content, :bot, :discoverable, fields_attributes: [:name, :value])
params.require(:account).permit(:display_name, :note, :avatar, :header, :replies, :locked, :hidden, :unlisted, :block_anon, :gently, :kobold, :adult_content, :bot, :discoverable, :filter_undescribed, fields_attributes: [:name, :value])
end
def set_account

View File

@ -43,6 +43,11 @@
%hr.spacer/
.fields-group
= f.input :filter_undescribed, as: :boolean, wrapper: :with_label
%hr.spacer/
.fields-row
.fields-row__column.fields-group.fields-row__column-6
.input.with_block_label

View File

@ -187,6 +187,8 @@ en:
desc: Filter roars with matching media descriptions
no_desc: Filter roars WITHOUT media descriptions
override_cw: Override existing content warning
filter_undescribed: Hide roars without media descriptions
boost_interval:
1: 1 minute
2: 2 minutes