From 9a23cf89217b16b47f10049b518b8d08a7c158eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 29 Sep 2017 13:09:48 +0200 Subject: [PATCH] FIX: wasn't able to save watched/tracked/muted categories/tags --- app/controllers/users_controller.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index e0b850faa0..87f6332ab5 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -864,12 +864,12 @@ class UsersController < ApplicationController :website, :dismissed_banner_key, :profile_background, - :card_background, - :muted_category_ids, - :watched_category_ids, - :tracked_category_ids, - :watched_first_post_category_ids - ] + UserUpdater::OPTION_ATTR + :card_background + ] + + permitted.concat UserUpdater::OPTION_ATTR + permitted.concat UserUpdater::CATEGORY_IDS.keys.map { |k| { k => [] } } + permitted.concat UserUpdater::TAG_NAMES.keys.map { |k| { k => [] } } result = params .permit(permitted)