Embedded videos appear inside of cw

master
Bob Mottram 2019-08-29 09:49:22 +01:00
parent b8854ca5cd
commit a92eb808b9
1 changed files with 2 additions and 1 deletions

View File

@ -1481,6 +1481,7 @@ def individualPostAsHtml(baseDir: str, \
if not postJsonObject['object']['sensitive']:
contentStr=postJsonObject['object']['content']+attachmentStr
contentStr=addEmbeddedVideo(contentStr)
else:
postID='post'+str(createPassword(8))
contentStr=''
@ -1493,12 +1494,12 @@ def individualPostAsHtml(baseDir: str, \
contentStr+='<button class="cwButton" onclick="showContentWarning('+"'"+postID+"'"+')">SHOW MORE</button>'
contentStr+='<div class="cwText" id="'+postID+'">'
contentStr+=postJsonObject['object']['content']+attachmentStr
contentStr=addEmbeddedVideo(contentStr)
contentStr+='</div>'
if postJsonObject['object'].get('tag'):
contentStr=htmlRemplaceEmojiFromTags(contentStr,postJsonObject['object']['tag'])
contentStr=addEmbeddedVideo(contentStr)
contentStr='<div class="message">'+contentStr+'</div>'
return \