mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DEV: Remove user options from current user serializer (#19089)
User options were serialized at the root level of CurrentUserSerializer, but UserSerializer has a user_option field. This inconsistency caused issues in the past because user_option fields had to be duplicated on the frontend.
This commit is contained in:
@ -11,7 +11,7 @@ export default class ComposerPresenceManager extends Service {
|
||||
notifyState(intent, id) {
|
||||
if (
|
||||
this.siteSettings.allow_users_to_hide_profile &&
|
||||
this.currentUser.hide_profile_and_presence
|
||||
this.currentUser.user_option.hide_profile_and_presence
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user