From 20273b0c91f7bee120571a40561f17f0d14794bd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 4 Sep 2021 19:05:52 +0100 Subject: [PATCH] Tidying --- inbox.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inbox.py b/inbox.py index 90409a9e6..c785e90ad 100644 --- a/inbox.py +++ b/inbox.py @@ -1537,8 +1537,8 @@ def _receiveAnnounce(recentPostsCache: {}, manuallyApproveFollowers = \ followerApprovalActive(baseDir, nickname, domain) notDM = True - # if debug: - print('Generating html for announce ' + messageJson['id']) + if debug: + print('Generating html for announce ' + messageJson['id']) announceHtml = \ individualPostAsHtml(signingPrivateKeyPem, True, recentPostsCache, maxRecentPosts, @@ -1560,8 +1560,8 @@ def _receiveAnnounce(recentPostsCache: {}, print('WARN: Unable to generate html for announce ' + str(messageJson)) else: - # if debug: - print('Generated announce html ' + announceHtml.replace('\n', '')) + if debug: + print('Generated announce html ' + announceHtml.replace('\n', '')) postJsonObject = downloadAnnounce(session, baseDir, httpPrefix,