about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEmelia Smith <ThisIsMissEm@users.noreply.github.com>2018-04-02 13:45:07 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-04-02 13:45:07 +0200
commite7a17167015dca6864f31152c47334c3b3a857a2 (patch)
treed730dec63e23d3a4ba9bf98c0137bed2f994cb02 /config
parent4fd71accd419fb79cc75e0ebf30df374d174ebf5 (diff)
Implement the ability for an Administrator or Moderator to remove an account avatar (#6998)
Diffstat (limited to 'config')
-rw-r--r--config/locales/en.yml3
-rw-r--r--config/routes.rb1
2 files changed, 4 insertions, 0 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml
index e3d76971b..fb2bbf4fe 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -60,6 +60,7 @@ en:
       destroyed_msg: Moderation note successfully destroyed!
     accounts:
       are_you_sure: Are you sure?
+      avatar: Avatar
       by_domain: Domain
       confirm: Confirm
       confirmed: Confirmed
@@ -108,6 +109,7 @@ en:
       public: Public
       push_subscription_expires: PuSH subscription expires
       redownload: Refresh avatar
+      remove_avatar: Remove avatar
       reset: Reset
       reset_password: Reset password
       resubscribe: Resubscribe
@@ -150,6 +152,7 @@ en:
         enable_user: "%{name} enabled login for user %{target}"
         memorialize_account: "%{name} turned %{target}'s account into a memoriam page"
         promote_user: "%{name} promoted user %{target}"
+        remove_avatar_user: "%{name} removed %{target}'s avatar"
         reset_password_user: "%{name} reset password of user %{target}"
         resolve_report: "%{name} dismissed report %{target}"
         silence_account: "%{name} silenced %{target}'s account"
diff --git a/config/routes.rb b/config/routes.rb
index 0542cb680..9a4460562 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -144,6 +144,7 @@ Rails.application.routes.draw do
         post :enable
         post :disable
         post :redownload
+        post :remove_avatar
         post :memorialize
       end