diff --git a/webapp_post.py b/webapp_post.py index 4ba2bb1e5..cd0c4afd5 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1226,6 +1226,7 @@ def individualPostAsHtml(signingPrivateKeyPem: str, messageId = '' if postJsonObject.get('id'): messageId = removeIdEnding(postJsonObject['id']) + muteMessageId = messageId _logPostTiming(enableTimingLog, postStartTime, '2') @@ -1365,6 +1366,8 @@ def individualPostAsHtml(signingPrivateKeyPem: str, recentPostsCache) return '' postJsonObject = postJsonAnnounce + if postJsonObject.get('id'): + muteMessageId = removeIdEnding(postJsonObject['id']) # is the announced post in the html cache? postHtml = \ @@ -1552,7 +1555,7 @@ def individualPostAsHtml(signingPrivateKeyPem: str, muteStr = \ _getMuteIconHtml(isMuted, postActor, - messageId, + muteMessageId, nickname, domainFull, allowDeletion, pageNumberParam,