about summary refs log tree commit diff
path: root/app/controllers/settings
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-22 21:34:19 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-22 21:34:19 +0100
commit2d2154ba75279186b064c887452b7d6ee70b8ba2 (patch)
treee27a84e2245184c899f2b347d63af16210973660 /app/controllers/settings
parentf91b6fa9e15029f23be7be3b796eca122e5b5588 (diff)
Add "locked" flag to accounts, prevent blocked users from following, force-unfollow blocked users
Diffstat (limited to 'app/controllers/settings')
-rw-r--r--app/controllers/settings/profiles_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/settings/profiles_controller.rb b/app/controllers/settings/profiles_controller.rb
index 9e8a7da8c..4be549958 100644
--- a/app/controllers/settings/profiles_controller.rb
+++ b/app/controllers/settings/profiles_controller.rb
@@ -1,12 +1,13 @@
 # frozen_string_literal: true
 
 class Settings::ProfilesController < ApplicationController
+  include ObfuscateFilename
+
   layout 'auth'
 
   before_action :authenticate_user!
   before_action :set_account
 
-  include ObfuscateFilename
   obfuscate_filename [:account, :avatar]
   obfuscate_filename [:account, :header]
 
@@ -23,7 +24,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, :locked)
   end
 
   def set_account