Remove authorized argument

main
Bob Mottram 2020-04-16 10:01:33 +01:00
parent db8e703c40
commit eb7ed65adb
1 changed files with 2 additions and 3 deletions

View File

@ -4446,8 +4446,7 @@ class PubServer(BaseHTTPRequestHandler):
self._set_headers_head(mediaFileType, fileLength,
etag, callingDomain)
def _receiveNewPostProcess(self, authorized: bool,
postType: str, path: str, headers: {},
def _receiveNewPostProcess(self, postType: str, path: str, headers: {},
length: int, postBytes, boundary: str) -> int:
# Note: this needs to happen synchronously
# 0=this is not a new post
@ -4982,7 +4981,7 @@ class PubServer(BaseHTTPRequestHandler):
# otherwise any attachments can get mangled if
# other events happen during their decoding
print('Creating new post from: ' + newPostThreadName)
self._receiveNewPostProcess(authorized, postType,
self._receiveNewPostProcess(postType,
path, headers, length,
postBytes, boundary)
return pageNumber