Local accounts can control "silenced" attribute which removes them from public timeline
This commit is contained in:
@ -20,7 +20,7 @@ class Settings::ProfilesController < ApplicationController
|
||||
private
|
||||
|
||||
def account_params
|
||||
params.require(:account).permit(:display_name, :note, :avatar, :header)
|
||||
params.require(:account).permit(:display_name, :note, :avatar, :header, :silenced)
|
||||
end
|
||||
|
||||
def set_account
|
||||
|
@ -8,6 +8,7 @@
|
||||
= f.input :note, placeholder: t('simple_form.labels.defaults.note')
|
||||
= f.input :avatar, wrapper: :with_label
|
||||
= f.input :header, wrapper: :with_label
|
||||
= f.input :silenced, as: :boolean, wrapper: :with_label
|
||||
|
||||
.actions
|
||||
= f.button :button, t('generic.save_changes'), type: :submit
|
||||
|
Reference in New Issue
Block a user