diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-22 21:34:19 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-22 21:34:19 +0100 |
commit | 2d2154ba75279186b064c887452b7d6ee70b8ba2 (patch) | |
tree | e27a84e2245184c899f2b347d63af16210973660 /app/controllers/settings | |
parent | f91b6fa9e15029f23be7be3b796eca122e5b5588 (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.rb | 5 |
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 |