From 0c4aa23fad33488be45002537ec1ae9285824b6f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 19 Aug 2021 23:16:32 +0100 Subject: [PATCH] Define summary --- inbox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 3decbf5ba..811d42f4a 100644 --- a/inbox.py +++ b/inbox.py @@ -1598,6 +1598,7 @@ def _validPostContent(baseDir: str, nickname: str, domain: str, if not validPostDate(messageJson['object']['published'], 90, debug): return False + summary = None if messageJson['object'].get('summary'): summary = messageJson['object']['summary'] if not isinstance(summary, str): @@ -1609,7 +1610,7 @@ def _validPostContent(baseDir: str, nickname: str, domain: str, if isGitPatch(baseDir, nickname, domain, messageJson['object']['type'], - messageJson['object']['summary'], + summary, messageJson['object']['content']): return True