mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 04:31:43 +08:00
BUGFIX: missing avatar on user pages
This commit is contained in:
parent
fb3e06bd64
commit
5e526c033d
|
@ -23,6 +23,7 @@ class UserSerializer < BasicUserSerializer
|
||||||
:title,
|
:title,
|
||||||
:suspend_reason,
|
:suspend_reason,
|
||||||
:suspended_till,
|
:suspended_till,
|
||||||
|
:uploaded_avatar_id,
|
||||||
:badge_count
|
:badge_count
|
||||||
|
|
||||||
has_one :invited_by, embed: :object, serializer: BasicUserSerializer
|
has_one :invited_by, embed: :object, serializer: BasicUserSerializer
|
||||||
|
@ -70,8 +71,7 @@ class UserSerializer < BasicUserSerializer
|
||||||
:private_messages_stats,
|
:private_messages_stats,
|
||||||
:disable_jump_reply,
|
:disable_jump_reply,
|
||||||
:gravatar_avatar_upload_id,
|
:gravatar_avatar_upload_id,
|
||||||
:custom_avatar_upload_id,
|
:custom_avatar_upload_id
|
||||||
:uploaded_avatar_id
|
|
||||||
|
|
||||||
def gravatar_avatar_upload_id
|
def gravatar_avatar_upload_id
|
||||||
object.user_avatar.try(:gravatar_upload_id)
|
object.user_avatar.try(:gravatar_upload_id)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user