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