Skip to content

Commit cf7aead

Browse files
committed
modify post.mode.spy
1 parent a2ca6fe commit cf7aead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hive/posts/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ def render_liker_list(self):
6868
return STR_SOMEONE_LIKE %(likers[0])
6969
else:
7070
likers = self.like_string.split()
71-
if len(likers) > 1:
71+
if len(likers) > 0:
7272
return STR_SOMEBODIES_LIKE %(likers[0], len(likers)-1)
7373
else:
74-
return STR_SOMEBODIES_LIKE %(likers, len(likers)-1)
74+
return STR_SOMEBODIES_LIKE %(self.like_string, "0")
7575

7676
def is_liked_by_observer(self, observer):
7777
# TO DO : use database to check if observer liked this post

0 commit comments

Comments
 (0)