From 3ae0f98f7c39f6c4d65cee2c208ddd0642723b12 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 11 Sep 2019 17:16:28 +0100 Subject: [PATCH] Check if a post was liked by the viewer --- webinterface.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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= \ '' \ ''