We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ca6fe commit cf7aeadCopy full SHA for cf7aead
hive/posts/models.py
@@ -68,10 +68,10 @@ def render_liker_list(self):
68
return STR_SOMEONE_LIKE %(likers[0])
69
else:
70
likers = self.like_string.split()
71
- if len(likers) > 1:
+ if len(likers) > 0:
72
return STR_SOMEBODIES_LIKE %(likers[0], len(likers)-1)
73
74
- return STR_SOMEBODIES_LIKE %(likers, len(likers)-1)
+ return STR_SOMEBODIES_LIKE %(self.like_string, "0")
75
76
def is_liked_by_observer(self, observer):
77
# TO DO : use database to check if observer liked this post
0 commit comments