Construct likes string

merge-requests/8/head
Bob Mottram 2020-09-05 12:46:33 +01:00
parent 14102aede1
commit 69393c2d7d
1 changed files with 2 additions and 1 deletions

View File

@ -4232,12 +4232,13 @@ def individualPostAsHtml(allowDownloads: bool,
if timeDiff > 100:
print('TIMING INDIV ' + boxName + ' 12.2 = ' + str(timeDiff))
likeStr = ''
if likeCountStr:
# show the number of likes next to icon
likeStr += '<label class="likesCount">'
likeStr += likeCountStr.replace('(', '').replace(')', '').strip()
likeStr += '</label>\n'
likeStr = \
likeStr += \
'<a class="imageAnchor" href="/users/' + nickname + '?' + \
likeLink + '=' + postJsonObject['object']['id'] + \
pageNumberParam + \