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