mirror of https://gitlab.com/bashrc2/epicyon
Avoid showing large numbers of likes
parent
a5e32811d4
commit
4c09983932
|
@ -3820,7 +3820,10 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
likeCountStr = ''
|
likeCountStr = ''
|
||||||
if likeCount > 0:
|
if likeCount > 0:
|
||||||
if likeCount > 1:
|
if likeCount > 1:
|
||||||
likeCountStr = ' (' + str(likeCount) + ')'
|
if likeCount <= 10:
|
||||||
|
likeCountStr = ' (' + str(likeCount) + ')'
|
||||||
|
else:
|
||||||
|
likeCountStr = ' (10+)'
|
||||||
likeIcon = 'like.png'
|
likeIcon = 'like.png'
|
||||||
if likedByPerson(postJsonObject, nickname, fullDomain):
|
if likedByPerson(postJsonObject, nickname, fullDomain):
|
||||||
likeLink = 'unlike'
|
likeLink = 'unlike'
|
||||||
|
|
Loading…
Reference in New Issue