mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
1322becc98
commit
4d042dbeca
|
@ -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 += \
|
||||||
|
|
Loading…
Reference in New Issue