mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 03:35:15 +08:00
FIX: changing another user's avatar changes yours
This commit is contained in:
@ -51,7 +51,11 @@ class UserSerializer < BasicUserSerializer
|
||||
:new_topic_duration_minutes,
|
||||
:external_links_in_new_tab,
|
||||
:dynamic_favicon,
|
||||
:enable_quoting
|
||||
:enable_quoting,
|
||||
:use_uploaded_avatar,
|
||||
:has_uploaded_avatar,
|
||||
:gravatar_template,
|
||||
:uploaded_avatar_template
|
||||
|
||||
|
||||
def auto_track_topics_after_msecs
|
||||
@ -78,4 +82,8 @@ class UserSerializer < BasicUserSerializer
|
||||
UserAction.stats(object.id, scope)
|
||||
end
|
||||
|
||||
def gravatar_template
|
||||
User.gravatar_template(object.email)
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user