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']
|
likeTitle=translate['Like this post']
|
||||||
if noOfLikes(postJsonObject)>0:
|
if noOfLikes(postJsonObject)>0:
|
||||||
likeIcon='like.png'
|
likeIcon='like.png'
|
||||||
likeLink='unlike'
|
if likedByPerson(postJsonObject,nickname,fullDomain):
|
||||||
likeTitle=translate['Undo the like']
|
likeLink='unlike'
|
||||||
|
likeTitle=translate['Undo the like']
|
||||||
likeStr= \
|
likeStr= \
|
||||||
'<a href="/users/'+nickname+'?'+likeLink+'='+postJsonObject['object']['id']+pageNumberParam+'" title="'+likeTitle+'">' \
|
'<a href="/users/'+nickname+'?'+likeLink+'='+postJsonObject['object']['id']+pageNumberParam+'" title="'+likeTitle+'">' \
|
||||||
'<img src="/icons/'+likeIcon+'"/></a>'
|
'<img src="/icons/'+likeIcon+'"/></a>'
|
||||||
|
|
Loading…
Reference in New Issue