From 39c6c42549434dcb73fce5782a0de92d0323d90a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 21 Feb 2020 12:39:50 +0000 Subject: [PATCH] Tidying --- daemon.py | 4 ++-- posts.py | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index 64d24e941..933eac4f0 100644 --- a/daemon.py +++ b/daemon.py @@ -3642,7 +3642,7 @@ class PubServer(BaseHTTPRequestHandler): self.server.useBlurHash, \ fields['replyTo'],fields['replyTo'], \ fields['subject'], \ - self.server.debug,fields['schedulePost'], \ + True,fields['schedulePost'], \ fields['eventDate'], \ fields['eventTime'], \ fields['location']) @@ -3830,7 +3830,7 @@ class PubServer(BaseHTTPRequestHandler): # Note sending new posts needs to be synchronous, otherwise any attachments # can get mangled if other events happen during their decoding - print('Creating new post: '+newPostThreadName) + print('Creating new post from: '+newPostThreadName) self._receiveNewPostProcess(authorized,postType,path,headers,length,postBytes,boundary) return pageNumber diff --git a/posts.py b/posts.py index 72558a195..5ef344f18 100644 --- a/posts.py +++ b/posts.py @@ -430,7 +430,9 @@ def savePostToBox(baseDir: str,httpPrefix: str,postId: str, \ if not postId: statusNumber,published = getStatusNumber() - postId=httpPrefix+'://'+originalDomain+'/users/'+nickname+'/statuses/'+statusNumber + postId= \ + httpPrefix+'://'+originalDomain+'/users/'+nickname+ \ + '/statuses/'+statusNumber postJsonObject['id']=postId+'/activity' if postJsonObject.get('object'): if isinstance(postJsonObject['object'], dict): @@ -1019,7 +1021,8 @@ def createDirectMessagePost(baseDir: str, eventDate=None,eventTime=None,location=None) -> {}: """Direct Message post """ - mentionedPeople=getMentionedPeople(baseDir,httpPrefix,content,domain,debug) + mentionedPeople= \ + getMentionedPeople(baseDir,httpPrefix,content,domain,debug) if debug: print('mentionedPeople: '+str(mentionedPeople)) if not mentionedPeople: