From 4739caad73256e3b6d62f3f1c6b04926b0a0ba01 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Aug 2019 12:39:55 +0100 Subject: [PATCH] Rename to disambiguate --- webinterface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webinterface.py b/webinterface.py index 81b04195b..e068b4c39 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1208,7 +1208,7 @@ def addEmbeddedAudio(content: str) -> str: content+='' return content -def addEmbeddedVideo(content: str,width=400,height=300) -> str: +def addEmbeddedVideoFromSites(content: str,width=400,height=300) -> str: """Adds embedded videos """ if '>vimeo.com/' in content: @@ -1512,7 +1512,7 @@ def individualPostAsHtml(baseDir: str, \ if not postJsonObject['object']['sensitive']: contentStr=postJsonObject['object']['content']+attachmentStr - contentStr=addEmbeddedVideo(contentStr) + contentStr=addEmbeddedVideoFromSites(contentStr) contentStr=addEmbeddedAudio(contentStr) else: postID='post'+str(createPassword(8)) @@ -1526,7 +1526,7 @@ def individualPostAsHtml(baseDir: str, \ contentStr+='' contentStr+='
' contentStr+=postJsonObject['object']['content']+attachmentStr - contentStr=addEmbeddedVideo(contentStr) + contentStr=addEmbeddedVideoFromSites(contentStr) contentStr=addEmbeddedAudio(contentStr) contentStr+='
'