Merge pull request #3829 from cpradio/fix-liked-avatars

FIX: Who Liked a Post now shows UserCard when avatar is clicked
This commit is contained in:
Sam 2015-10-03 08:34:28 +10:00
commit 992386b22e
1 changed files with 6 additions and 1 deletions

View File

@ -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