mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: user name and title were not showing on post creation
This commit is contained in:
parent
0a24c3cb5f
commit
62c1291548
2 changed files with 3 additions and 0 deletions
|
@ -530,9 +530,11 @@ Discourse.Composer = Discourse.Model.extend({
|
|||
imageSizes: opts.imageSizes,
|
||||
cooked: this.getCookedHtml(),
|
||||
reply_count: 0,
|
||||
name: currentUser.get('name'),
|
||||
display_username: currentUser.get('name'),
|
||||
username: currentUser.get('username'),
|
||||
user_id: currentUser.get('id'),
|
||||
user_title: currentUser.get('title'),
|
||||
uploaded_avatar_id: currentUser.get('uploaded_avatar_id'),
|
||||
user_custom_fields: currentUser.get('custom_fields'),
|
||||
post_type: Discourse.Site.currentProp('post_types.regular'),
|
||||
|
|
|
@ -9,6 +9,7 @@ class CurrentUserSerializer < BasicUserSerializer
|
|||
:site_flagged_posts_count,
|
||||
:moderator?,
|
||||
:staff?,
|
||||
:title,
|
||||
:reply_count,
|
||||
:topic_count,
|
||||
:enable_quoting,
|
||||
|
|
Loading…
Reference in a new issue