mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
BUGFIX: missing avatar on user pages
This commit is contained in:
parent
fb3e06bd64
commit
5e526c033d
1 changed files with 2 additions and 2 deletions
|
@ -23,6 +23,7 @@ class UserSerializer < BasicUserSerializer
|
|||
:title,
|
||||
:suspend_reason,
|
||||
:suspended_till,
|
||||
:uploaded_avatar_id,
|
||||
:badge_count
|
||||
|
||||
has_one :invited_by, embed: :object, serializer: BasicUserSerializer
|
||||
|
@ -70,8 +71,7 @@ class UserSerializer < BasicUserSerializer
|
|||
:private_messages_stats,
|
||||
:disable_jump_reply,
|
||||
:gravatar_avatar_upload_id,
|
||||
:custom_avatar_upload_id,
|
||||
:uploaded_avatar_id
|
||||
:custom_avatar_upload_id
|
||||
|
||||
def gravatar_avatar_upload_id
|
||||
object.user_avatar.try(:gravatar_upload_id)
|
||||
|
|
Loading…
Reference in a new issue