From e48e2a0fd1e16f79886d7119bcb19b04431e45f4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 22 Nov 2021 12:25:35 +0000 Subject: [PATCH] Mark announces with bad ciphertext as rejected --- posts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/posts.py b/posts.py index 422a3b2d8..2837a224f 100644 --- a/posts.py +++ b/posts.py @@ -4604,6 +4604,9 @@ def downloadAnnounce(session, baseDir: str, httpPrefix: str, return None if invalidCiphertext(contentStr): + _rejectAnnounce(announceFilename, + baseDir, nickname, domain, postId, + recentPostsCache) print('WARN: Invalid ciphertext within announce ' + str(announcedJson)) return None