diff --git a/webinterface.py b/webinterface.py index 50c58e4e7..a4776304d 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1681,24 +1681,25 @@ def htmlDeletePost(session,baseDir: str,messageId: str, \ if not os.path.isfile(baseDir+'/accounts/delete-background.png'): copyfile(baseDir+'/img/delete-background.png',baseDir+'/accounts/delete-background.png') + deletePostStr=None with open(baseDir+'/epicyon-profile.css', 'r') as cssFile: profileStyle = cssFile.read() - deletePostStr=htmlHeader(profileStyle) - deletePostStr='' - deletePostStr+= \ - individualPostAsHtml(baseDir,session,wfRequest,personCache, \ - nickname,domain,port,postJsonObject,None,True,False, \ - httpPrefix,projectVersion,False,False) - deletePostStr+='
' - deletePostStr+='

Delete this post?

' - deletePostStr+= \ - '
' \ - ' ' \ - ' ' \ - ' ' \ - '
' - deletePostStr+='
' - deletePostStr+=htmlFooter() + deletePostStr=htmlHeader(profileStyle) + deletePostStr+='' + deletePostStr+= \ + individualPostAsHtml(baseDir,session,wfRequest,personCache, \ + nickname,domain,port,postJsonObject,None,True,False, \ + httpPrefix,projectVersion,False,False) + deletePostStr+='
' + deletePostStr+='

Delete this post?

' + deletePostStr+= \ + '
' \ + ' ' \ + ' ' \ + ' ' \ + '
' + deletePostStr+='
' + deletePostStr+=htmlFooter() return deletePostStr def htmlFollowConfirm(baseDir: str,originPathStr: str,followActor: str,followProfileUrl: str) -> str: