main
Bob Mottram 2021-09-04 19:05:52 +01:00
parent ddeb492ac8
commit 20273b0c91
1 changed files with 4 additions and 4 deletions

View File

@ -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,