mirror of https://gitlab.com/bashrc2/epicyon
Check if a post was liked by the viewer
parent
a4e8282028
commit
3ae0f98f7c
|
@ -1765,8 +1765,9 @@ def individualPostAsHtml(translate: {}, \
|
|||
likeTitle=translate['Like this post']
|
||||
if noOfLikes(postJsonObject)>0:
|
||||
likeIcon='like.png'
|
||||
likeLink='unlike'
|
||||
likeTitle=translate['Undo the like']
|
||||
if likedByPerson(postJsonObject,nickname,fullDomain):
|
||||
likeLink='unlike'
|
||||
likeTitle=translate['Undo the like']
|
||||
likeStr= \
|
||||
'<a href="/users/'+nickname+'?'+likeLink+'='+postJsonObject['object']['id']+pageNumberParam+'" title="'+likeTitle+'">' \
|
||||
'<img src="/icons/'+likeIcon+'"/></a>'
|
||||
|
|
Loading…
Reference in New Issue