mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:52:47 +08:00
![Bianca Nenciu](/assets/img/avatar_default.png)
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.
57 lines
1.5 KiB
JavaScript
57 lines
1.5 KiB
JavaScript
export default {
|
|
"/session/current.json": {
|
|
current_user: {
|
|
id: 19,
|
|
username: "eviltrout",
|
|
uploaded_avatar_id: 5275,
|
|
avatar_template: "/user_avatar/localhost/eviltrout/{size}/5275.png",
|
|
name: "Robin Ward",
|
|
unread_notifications: 0,
|
|
unread_private_messages: 0,
|
|
unread_high_priority_notifications: 0,
|
|
admin: true,
|
|
notification_channel_position: null,
|
|
site_flagged_posts_count: 1,
|
|
moderator: true,
|
|
staff: true,
|
|
can_create_group: true,
|
|
title: "co-founder",
|
|
reply_count: 859,
|
|
topic_count: 36,
|
|
trust_level: 4,
|
|
can_edit: true,
|
|
can_invite_to_forum: true,
|
|
can_send_private_messages: true,
|
|
custom_fields: {},
|
|
muted_category_ids: [],
|
|
dismissed_banner_key: null,
|
|
akismet_review_count: 0,
|
|
can_review: true,
|
|
ignored_users: [],
|
|
groups: [
|
|
{
|
|
id: 10,
|
|
automatic: true,
|
|
name: "trust_level_0",
|
|
display_name: "trust_level_0",
|
|
},
|
|
{
|
|
id: 11,
|
|
automatic: true,
|
|
name: "trust_level_1",
|
|
display_name: "trust_level_1",
|
|
}
|
|
],
|
|
user_option: {
|
|
external_links_in_new_tab: false,
|
|
enable_quoting: true,
|
|
dynamic_favicon: true,
|
|
title_count_mode: "notifications",
|
|
timezone: "Australia/Brisbane",
|
|
skip_new_user_tips: false,
|
|
should_be_redirected_to_top: false,
|
|
},
|
|
},
|
|
},
|
|
};
|