Local accounts can control "silenced" attribute which removes them from public timeline

rebase/4.0.0rc2
Eugen Rochko 2016-11-21 23:05:11 +01:00
parent 7abbb02824
commit 1788164352
5 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class Settings::ProfilesController < ApplicationController
private private
def account_params def account_params
params.require(:account).permit(:display_name, :note, :avatar, :header) params.require(:account).permit(:display_name, :note, :avatar, :header, :silenced)
end end
def set_account def set_account

View File

@ -8,6 +8,7 @@
= f.input :note, placeholder: t('simple_form.labels.defaults.note') = f.input :note, placeholder: t('simple_form.labels.defaults.note')
= f.input :avatar, wrapper: :with_label = f.input :avatar, wrapper: :with_label
= f.input :header, wrapper: :with_label = f.input :header, wrapper: :with_label
= f.input :silenced, as: :boolean, wrapper: :with_label
.actions .actions
= f.button :button, t('generic.save_changes'), type: :submit = f.button :button, t('generic.save_changes'), type: :submit

View File

@ -15,6 +15,7 @@ de:
note: Über mich note: Über mich
password: Passwort password: Passwort
username: Nutzername username: Nutzername
silenced: Öffentliche Beiträge nicht auflisten
notification_emails: notification_emails:
favourite: E-mail senden, wenn jemand meinen Beitrag favorisiert favourite: E-mail senden, wenn jemand meinen Beitrag favorisiert
follow: E-mail senden, wenn mir jemand folgt follow: E-mail senden, wenn mir jemand folgt

View File

@ -15,6 +15,7 @@ en:
note: Bio note: Bio
password: Password password: Password
username: Username username: Username
silenced: Unlisted mode
notification_emails: notification_emails:
favourite: Send e-mail when someone favourites your status favourite: Send e-mail when someone favourites your status
follow: Send e-mail when someone follows you follow: Send e-mail when someone follows you

View File

@ -15,6 +15,7 @@ es:
note: Biografía note: Biografía
password: Contraseña password: Contraseña
username: Nombre de usuario username: Nombre de usuario
silenced: No listado
notification_emails: notification_emails:
favourite: Enviar correo electrónico cuando alguien de a favorito en su publicación favourite: Enviar correo electrónico cuando alguien de a favorito en su publicación
follow: Enviar correo electrónico cuando alguien le siga follow: Enviar correo electrónico cuando alguien le siga