mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: Who Liked a Post now shows UserCard when avatar is clicked
This commit is contained in:
parent
95e90ee9aa
commit
57c1b15911
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
class PostActionUserSerializer < BasicUserSerializer
|
||||
attributes :post_url
|
||||
attributes :post_url,
|
||||
:username_lower
|
||||
|
||||
def id
|
||||
object.user.id
|
||||
|
@ -9,6 +10,10 @@ class PostActionUserSerializer < BasicUserSerializer
|
|||
object.user.username
|
||||
end
|
||||
|
||||
def username_lower
|
||||
object.user.username_lower
|
||||
end
|
||||
|
||||
def avatar_template
|
||||
object.user.avatar_template
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue