Define onjectContent for a patch

main
Bob Mottram 2020-05-02 20:06:01 +00:00
parent 7dd72896a0
commit 9f5e8b0a85
1 changed files with 3 additions and 0 deletions

View File

@ -3943,6 +3943,9 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int,
removeLongWords(postJsonObject['object']['content'], 40, [])
objectContent = \
switchWords(baseDir, nickname, domain, objectContent)
else:
objectContent = postJsonObject['object']['content']
if not postIsSensitive:
contentStr = objectContent + attachmentStr
contentStr = addEmbeddedElements(translate, contentStr)