From cffc8089c85c21b2a4cd86d525e72d2687978d85 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 4 Sep 2021 13:33:10 +0100 Subject: [PATCH] Announce debug --- inbox.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/inbox.py b/inbox.py index dc99dd172..efeba1c31 100644 --- a/inbox.py +++ b/inbox.py @@ -1604,18 +1604,20 @@ def _receiveAnnounce(recentPostsCache: {}, time.sleep(5) if debug: print('DEBUG: announced/repeated post arrived in inbox') - if messageJson: - pageNumber = 1 - showPublishedDateOnly = False - showIndividualPostIcons = True - manuallyApproveFollowers = \ - followerApprovalActive(baseDir, nickname, domain) - notDM = True + + pageNumber = 1 + showPublishedDateOnly = False + showIndividualPostIcons = True + manuallyApproveFollowers = \ + followerApprovalActive(baseDir, nickname, domain) + notDM = True + print('Generating html for announce ' + postJsonObject['id']) + announceHtml = \ individualPostAsHtml(signingPrivateKeyPem, True, recentPostsCache, maxRecentPosts, translate, pageNumber, baseDir, session, cachedWebfingers, personCache, - nickname, domain, port, messageJson, + nickname, domain, port, postJsonObject, None, True, allowDeletion, httpPrefix, __version__, 'inbox', YTReplacementDomain, @@ -1627,7 +1629,7 @@ def _receiveAnnounce(recentPostsCache: {}, showIndividualPostIcons, manuallyApproveFollowers, False, True, False) - + print('Generating html for announce ' + str(announceHtml)) return True