From 00aa32082bb0c4ab37e6cfd10ae9e222c6223e1c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 11 Nov 2021 22:37:34 +0000 Subject: [PATCH] Containers for reaction emoji categories --- webapp_post.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index c69237a18..67703dc06 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -2221,10 +2221,11 @@ def htmlEmojiReactionPicker(cssCache: {}, if not os.path.isfile(reactionsFilename): reactionsFilename = baseDir + '/emoji/default_reactions.json' reactionsJson = loadJson(reactionsFilename) - emojiPicksStr = '
\n' + emojiPicksStr = '' baseUrl = '/users/' + nickname postId = removeIdEnding(postJsonObject['id']) for category, item in reactionsJson.items(): + emojiPicksStr = '
\n' for emojiContent in item: emojiContentEncoded = urllib.parse.quote_plus(emojiContent) emojiUrl = \ @@ -2233,7 +2234,7 @@ def htmlEmojiReactionPicker(cssCache: {}, emojiLabel = '' emojiPicksStr += \ ' ' + emojiLabel + '\n' - emojiPicksStr += '
\n' + emojiPicksStr += '
\n' cssFilename = baseDir + '/epicyon-profile.css' if os.path.isfile(baseDir + '/epicyon.css'):