mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Merge pull request #3119 from techAPJ/patch-3
FIX: user name and title were not showing on post creation
This commit is contained in:
commit
9e82c41576
@ -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…
x
Reference in New Issue
Block a user