main
Bob Mottram 2021-11-03 11:18:30 +00:00
parent 1322becc98
commit 4d042dbeca
1 changed files with 8 additions and 5 deletions

View File

@ -289,11 +289,14 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
if '?' in path:
path = path.split('?')[0]
pathBase = path.replace('/newreport', '').replace('/newpost', '')
pathBase = pathBase.replace('/newblog', '').replace('/newshare', '')
pathBase = pathBase.replace('/newunlisted', '').replace('/newwanted', '')
pathBase = pathBase.replace('/newreminder', '')
pathBase = pathBase.replace('/newfollowers', '').replace('/newdm', '')
newPostEndpoints = (
'/newreport', '/newpost', '/newblog', '/newshare',
'/newunlisted', '/newwanted', '/newreminder',
'/newfollowers', '/newdm'
)
pathBase = path
for newPostReplace in newPostEndpoints:
pathBase = pathBase.replace(newPostReplace, '')
newPostImageSection = ' <div class="container">'
newPostImageSection += \