Use original post

main
Bob Mottram 2021-11-07 10:56:05 +00:00
parent d7cd151f04
commit 060311e288
1 changed files with 2 additions and 1 deletions

View File

@ -1922,6 +1922,7 @@ def htmlIndividualPost(cssCache: {},
CWlists: {}, listsEnabled: str) -> str:
"""Show an individual post as html
"""
originalPostJson = postJsonObject
postStr = ''
if likedBy:
likedByNickname = getNicknameFromActor(likedBy)
@ -2048,7 +2049,7 @@ def htmlIndividualPost(cssCache: {},
instanceTitle = \
getConfigParam(baseDir, 'instanceTitle')
metadataStr = _htmlPostMetadataOpenGraph(domain, postJsonObject)
metadataStr = _htmlPostMetadataOpenGraph(domain, originalPostJson)
headerStr = htmlHeaderWithExternalStyle(cssFilename,
instanceTitle, metadataStr)
return headerStr + postStr + htmlFooter()