Tidying of new post endpoints

merge-requests/30/head
Bob Mottram 2021-11-03 11:32:38 +00:00
parent 0fc18cc7dd
commit b65f7722d4
2 changed files with 3 additions and 4 deletions

View File

@ -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:

View File

@ -3152,5 +3152,6 @@ def getNewPostEndpoints() -> []:
"""
return (
'newpost', 'newblog', 'newunlisted', 'newfollowers', 'newdm',
'newreminder', 'newreport', 'newquestion', 'newshare', 'newwanted'
'newreminder', 'newreport', 'newquestion', 'newshare', 'newwanted',
'editblogpost'
)