Avoid showing large numbers of likes

main
Bob Mottram 2020-07-08 18:45:54 +01:00
parent a5e32811d4
commit 4c09983932
1 changed files with 4 additions and 1 deletions

View File

@ -3820,7 +3820,10 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int,
likeCountStr = ''
if likeCount > 0:
if likeCount > 1:
likeCountStr = ' (' + str(likeCount) + ')'
if likeCount <= 10:
likeCountStr = ' (' + str(likeCount) + ')'
else:
likeCountStr = ' (10+)'
likeIcon = 'like.png'
if likedByPerson(postJsonObject, nickname, fullDomain):
likeLink = 'unlike'