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

master
Eugen Rochko 8 years ago
parent 7abbb02824
commit 1788164352
  1. 2
      app/controllers/settings/profiles_controller.rb
  2. 1
      app/views/settings/profiles/show.html.haml
  3. 1
      config/locales/simple_form.de.yml
  4. 1
      config/locales/simple_form.en.yml
  5. 1
      config/locales/simple_form.es.yml

@ -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

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

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

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

Loading…
Cancel
Save