Merge pull request #3119 from techAPJ/patch-3

FIX: user name and title were not showing on post creation
This commit is contained in:
Robin Ward 2015-01-21 16:04:00 -05:00
commit 9e82c41576
2 changed files with 3 additions and 0 deletions

View File

@ -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'),

View File

@ -9,6 +9,7 @@ class CurrentUserSerializer < BasicUserSerializer
:site_flagged_posts_count,
:moderator?,
:staff?,
:title,
:reply_count,
:topic_count,
:enable_quoting,