merge-requests/30/head
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: if '?' in path:
path = path.split('?')[0] path = path.split('?')[0]
pathBase = path.replace('/newreport', '').replace('/newpost', '') newPostEndpoints = (
pathBase = pathBase.replace('/newblog', '').replace('/newshare', '') '/newreport', '/newpost', '/newblog', '/newshare',
pathBase = pathBase.replace('/newunlisted', '').replace('/newwanted', '') '/newunlisted', '/newwanted', '/newreminder',
pathBase = pathBase.replace('/newreminder', '') '/newfollowers', '/newdm'
pathBase = pathBase.replace('/newfollowers', '').replace('/newdm', '') )
pathBase = path
for newPostReplace in newPostEndpoints:
pathBase = pathBase.replace(newPostReplace, '')
newPostImageSection = ' <div class="container">' newPostImageSection = ' <div class="container">'
newPostImageSection += \ newPostImageSection += \