mirror of
https://github.com/discourse/discourse.git
synced 2025-05-18 01:33:06 +08: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,
|
imageSizes: opts.imageSizes,
|
||||||
cooked: this.getCookedHtml(),
|
cooked: this.getCookedHtml(),
|
||||||
reply_count: 0,
|
reply_count: 0,
|
||||||
|
name: currentUser.get('name'),
|
||||||
display_username: currentUser.get('name'),
|
display_username: currentUser.get('name'),
|
||||||
username: currentUser.get('username'),
|
username: currentUser.get('username'),
|
||||||
user_id: currentUser.get('id'),
|
user_id: currentUser.get('id'),
|
||||||
|
user_title: currentUser.get('title'),
|
||||||
uploaded_avatar_id: currentUser.get('uploaded_avatar_id'),
|
uploaded_avatar_id: currentUser.get('uploaded_avatar_id'),
|
||||||
user_custom_fields: currentUser.get('custom_fields'),
|
user_custom_fields: currentUser.get('custom_fields'),
|
||||||
post_type: Discourse.Site.currentProp('post_types.regular'),
|
post_type: Discourse.Site.currentProp('post_types.regular'),
|
||||||
|
@ -9,6 +9,7 @@ class CurrentUserSerializer < BasicUserSerializer
|
|||||||
:site_flagged_posts_count,
|
:site_flagged_posts_count,
|
||||||
:moderator?,
|
:moderator?,
|
||||||
:staff?,
|
:staff?,
|
||||||
|
:title,
|
||||||
:reply_count,
|
:reply_count,
|
||||||
:topic_count,
|
:topic_count,
|
||||||
:enable_quoting,
|
:enable_quoting,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user