mirror of https://gitlab.com/bashrc2/epicyon
Announce debug
parent
38cc4cbf4b
commit
cffc8089c8
8
inbox.py
8
inbox.py
|
@ -1604,18 +1604,20 @@ def _receiveAnnounce(recentPostsCache: {},
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: announced/repeated post arrived in inbox')
|
print('DEBUG: announced/repeated post arrived in inbox')
|
||||||
if messageJson:
|
|
||||||
pageNumber = 1
|
pageNumber = 1
|
||||||
showPublishedDateOnly = False
|
showPublishedDateOnly = False
|
||||||
showIndividualPostIcons = True
|
showIndividualPostIcons = True
|
||||||
manuallyApproveFollowers = \
|
manuallyApproveFollowers = \
|
||||||
followerApprovalActive(baseDir, nickname, domain)
|
followerApprovalActive(baseDir, nickname, domain)
|
||||||
notDM = True
|
notDM = True
|
||||||
|
print('Generating html for announce ' + postJsonObject['id'])
|
||||||
|
announceHtml = \
|
||||||
individualPostAsHtml(signingPrivateKeyPem, True,
|
individualPostAsHtml(signingPrivateKeyPem, True,
|
||||||
recentPostsCache, maxRecentPosts,
|
recentPostsCache, maxRecentPosts,
|
||||||
translate, pageNumber, baseDir,
|
translate, pageNumber, baseDir,
|
||||||
session, cachedWebfingers, personCache,
|
session, cachedWebfingers, personCache,
|
||||||
nickname, domain, port, messageJson,
|
nickname, domain, port, postJsonObject,
|
||||||
None, True, allowDeletion,
|
None, True, allowDeletion,
|
||||||
httpPrefix, __version__,
|
httpPrefix, __version__,
|
||||||
'inbox', YTReplacementDomain,
|
'inbox', YTReplacementDomain,
|
||||||
|
@ -1627,7 +1629,7 @@ def _receiveAnnounce(recentPostsCache: {},
|
||||||
showIndividualPostIcons,
|
showIndividualPostIcons,
|
||||||
manuallyApproveFollowers,
|
manuallyApproveFollowers,
|
||||||
False, True, False)
|
False, True, False)
|
||||||
|
print('Generating html for announce ' + str(announceHtml))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue