mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:31:13 +08:00
FEATURE: add support for generic external avatar services
This changes it so we only ship an avatar template down to the client it has no magic, all it knows is how to plug in size
This commit is contained in:
@ -26,12 +26,8 @@ class UserActionSerializer < ApplicationSerializer
|
||||
:action_code,
|
||||
:edit_reason,
|
||||
:category_id,
|
||||
:uploaded_avatar_id,
|
||||
:letter_avatar_color,
|
||||
:closed,
|
||||
:archived,
|
||||
:acting_uploaded_avatar_id,
|
||||
:acting_letter_avatar_color
|
||||
:archived
|
||||
|
||||
def excerpt
|
||||
cooked = object.cooked || PrettyText.cook(object.raw)
|
||||
@ -86,12 +82,4 @@ class UserActionSerializer < ApplicationSerializer
|
||||
object.topic_archived
|
||||
end
|
||||
|
||||
def letter_avatar_color
|
||||
User.letter_avatar_color(username)
|
||||
end
|
||||
|
||||
def acting_letter_avatar_color
|
||||
User.letter_avatar_color(acting_username)
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user