From 1ba6861e8857af8d7971533547289604c0351f99 Mon Sep 17 00:00:00 2001
From: Bob Mottram
') - return '
' + htmlReplaceQuoteMarks(content) + '
' + return '' + content + '
' def getMentionsFromHtml(htmlText: str, diff --git a/webinterface.py b/webinterface.py index c747a4e9..34547f5f 100644 --- a/webinterface.py +++ b/webinterface.py @@ -57,6 +57,7 @@ from bookmarks import bookmarkedByPerson from announce import announcedByPerson from blocking import isBlocked from blocking import isBlockedHashtag +from content import htmlReplaceQuoteMarks from content import removeTextFormatting from content import switchWords from content import getMentionsFromHtml @@ -4260,8 +4261,10 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, objectContent = removeTextFormatting(objectContent) objectContent = \ switchWords(baseDir, nickname, domain, objectContent) + objectContent = htmlReplaceQuoteMarks(objectContent) else: - objectContent = postJsonObject['object']['content'] + objectContent = \ + htmlReplaceQuoteMarks(postJsonObject['object']['content']) if not postIsSensitive: contentStr = objectContent + attachmentStr