mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-24 15:33:57 -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
|
class PostActionUserSerializer < BasicUserSerializer
|
||||||
attributes :post_url
|
attributes :post_url,
|
||||||
|
:username_lower
|
||||||
|
|
||||||
def id
|
def id
|
||||||
object.user.id
|
object.user.id
|
||||||
|
@ -9,6 +10,10 @@ class PostActionUserSerializer < BasicUserSerializer
|
||||||
object.user.username
|
object.user.username
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def username_lower
|
||||||
|
object.user.username_lower
|
||||||
|
end
|
||||||
|
|
||||||
def avatar_template
|
def avatar_template
|
||||||
object.user.avatar_template
|
object.user.avatar_template
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue