diff --git a/webinterface.py b/webinterface.py index 8553cc85..ca178910 100644 --- a/webinterface.py +++ b/webinterface.py @@ -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= \ '' \ ''