mirror of https://gitlab.com/bashrc2/epicyon
Tidying of new post endpoints
parent
0fc18cc7dd
commit
b65f7722d4
|
@ -16697,9 +16697,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.debug)
|
||||
|
||||
# receive different types of post created by htmlNewPost
|
||||
postTypes = ("newpost", "newblog", "newunlisted", "newfollowers",
|
||||
"newdm", "newreport", "newshare", "newwanted",
|
||||
"newquestion", "editblogpost", "newreminder")
|
||||
postTypes = getNewPostEndpoints()
|
||||
for currPostType in postTypes:
|
||||
if not authorized:
|
||||
if self.server.debug:
|
||||
|
|
3
utils.py
3
utils.py
|
@ -3152,5 +3152,6 @@ def getNewPostEndpoints() -> []:
|
|||
"""
|
||||
return (
|
||||
'newpost', 'newblog', 'newunlisted', 'newfollowers', 'newdm',
|
||||
'newreminder', 'newreport', 'newquestion', 'newshare', 'newwanted'
|
||||
'newreminder', 'newreport', 'newquestion', 'newshare', 'newwanted',
|
||||
'editblogpost'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue