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)
|
self.server.debug)
|
||||||
|
|
||||||
# receive different types of post created by htmlNewPost
|
# receive different types of post created by htmlNewPost
|
||||||
postTypes = ("newpost", "newblog", "newunlisted", "newfollowers",
|
postTypes = getNewPostEndpoints()
|
||||||
"newdm", "newreport", "newshare", "newwanted",
|
|
||||||
"newquestion", "editblogpost", "newreminder")
|
|
||||||
for currPostType in postTypes:
|
for currPostType in postTypes:
|
||||||
if not authorized:
|
if not authorized:
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
|
|
3
utils.py
3
utils.py
|
@ -3152,5 +3152,6 @@ def getNewPostEndpoints() -> []:
|
||||||
"""
|
"""
|
||||||
return (
|
return (
|
||||||
'newpost', 'newblog', 'newunlisted', 'newfollowers', 'newdm',
|
'newpost', 'newblog', 'newunlisted', 'newfollowers', 'newdm',
|
||||||
'newreminder', 'newreport', 'newquestion', 'newshare', 'newwanted'
|
'newreminder', 'newreport', 'newquestion', 'newshare', 'newwanted',
|
||||||
|
'editblogpost'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue