mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
FIX: wasn't able to save watched/tracked/muted categories/tags
This commit is contained in:
parent
41261b32a5
commit
f6c484881b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user