mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 17:43:01 +08:00
FIX: wasn't able to save watched/tracked/muted categories/tags
This commit is contained in:
parent
41261b32a5
commit
f6c484881b
1 changed files with 6 additions and 6 deletions
|
@ -864,12 +864,12 @@ class UsersController < ApplicationController
|
||||||
:website,
|
:website,
|
||||||
:dismissed_banner_key,
|
:dismissed_banner_key,
|
||||||
:profile_background,
|
:profile_background,
|
||||||
:card_background,
|
:card_background
|
||||||
:muted_category_ids,
|
]
|
||||||
:watched_category_ids,
|
|
||||||
:tracked_category_ids,
|
permitted.concat UserUpdater::OPTION_ATTR
|
||||||
:watched_first_post_category_ids
|
permitted.concat UserUpdater::CATEGORY_IDS.keys.map { |k| { k => [] } }
|
||||||
] + UserUpdater::OPTION_ATTR
|
permitted.concat UserUpdater::TAG_NAMES.keys.map { |k| { k => [] } }
|
||||||
|
|
||||||
result = params
|
result = params
|
||||||
.permit(permitted)
|
.permit(permitted)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue