forked from indymedia/epicyon
Embedded videos appear inside of cw
parent
b8854ca5cd
commit
a92eb808b9
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue