From 19649481b9c41267ab32c8944ecfcfb6fd88b2a3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 8 Aug 2021 23:33:37 +0100 Subject: [PATCH] Detect conversationId field --- daemon.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon.py b/daemon.py index f325d1971..e9628538c 100644 --- a/daemon.py +++ b/daemon.py @@ -13489,7 +13489,7 @@ class PubServer(BaseHTTPRequestHandler): self.server.baseDir, nickname, self.server.domain) conversationId = None - if fields['conversationId']: + if fields.get('conversationId'): conversationId = fields['conversationId'] messageJson = \ createPublicPost(self.server.baseDir, @@ -13567,7 +13567,7 @@ class PubServer(BaseHTTPRequestHandler): clientToServer = False city = None conversationId = None - if fields['conversationId']: + if fields.get('conversationId'): conversationId = fields['conversationId'] messageJson = \ createBlogPost(self.server.baseDir, nickname, @@ -13702,7 +13702,7 @@ class PubServer(BaseHTTPRequestHandler): clientToServer = False conversationId = None - if fields['conversationId']: + if fields.get('conversationId'): conversationId = fields['conversationId'] messageJson = \ @@ -13748,7 +13748,7 @@ class PubServer(BaseHTTPRequestHandler): clientToServer = False conversationId = None - if fields['conversationId']: + if fields.get('conversationId'): conversationId = fields['conversationId'] messageJson = \ @@ -13799,7 +13799,7 @@ class PubServer(BaseHTTPRequestHandler): clientToServer = False conversationId = None - if fields['conversationId']: + if fields.get('conversationId'): conversationId = fields['conversationId'] messageJson = \