Check that json was returned

main
Bob Mottram 2021-09-03 13:51:46 +01:00
parent 192018cde6
commit e036cc15de
1 changed files with 58 additions and 52 deletions

View File

@ -7146,9 +7146,11 @@ class PubServer(BaseHTTPRequestHandler):
print('Regenerating html post for changed likes collection') print('Regenerating html post for changed likes collection')
pageNumber = 1 pageNumber = 1
likedPostJson = loadJson(likedPostFilename, 0, 1) likedPostJson = loadJson(likedPostFilename, 0, 1)
if likedPostJson:
showIndividualPostIcons = True showIndividualPostIcons = True
manuallyApproveFollowers = \ manuallyApproveFollowers = \
followerApprovalActive(baseDir, self.postToNickname, domain) followerApprovalActive(baseDir,
self.postToNickname, domain)
individualPostAsHtml(self.server.signingPrivateKeyPem, True, individualPostAsHtml(self.server.signingPrivateKeyPem, True,
self.server.recentPostsCache, self.server.recentPostsCache,
self.server.maxRecentPosts, self.server.maxRecentPosts,
@ -7158,7 +7160,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.cachedWebfingers, self.server.cachedWebfingers,
self.server.personCache, self.server.personCache,
self.postToNickname, domain, self.postToNickname, domain,
self.server.port, likedPostJson, None, True, self.server.port, likedPostJson,
None, True,
self.server.allowDeletion, self.server.allowDeletion,
httpPrefix, __version__, 'inbox', httpPrefix, __version__, 'inbox',
self.server.YTReplacementDomain, self.server.YTReplacementDomain,
@ -7280,9 +7283,11 @@ class PubServer(BaseHTTPRequestHandler):
print('Regenerating html post for changed likes collection') print('Regenerating html post for changed likes collection')
pageNumber = 1 pageNumber = 1
likedPostJson = loadJson(likedPostFilename, 0, 1) likedPostJson = loadJson(likedPostFilename, 0, 1)
if likedPostJson:
showIndividualPostIcons = True showIndividualPostIcons = True
manuallyApproveFollowers = \ manuallyApproveFollowers = \
followerApprovalActive(baseDir, self.postToNickname, domain) followerApprovalActive(baseDir,
self.postToNickname, domain)
individualPostAsHtml(self.server.signingPrivateKeyPem, True, individualPostAsHtml(self.server.signingPrivateKeyPem, True,
self.server.recentPostsCache, self.server.recentPostsCache,
self.server.maxRecentPosts, self.server.maxRecentPosts,
@ -7292,7 +7297,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.cachedWebfingers, self.server.cachedWebfingers,
self.server.personCache, self.server.personCache,
self.postToNickname, domain, self.postToNickname, domain,
self.server.port, likedPostJson, None, True, self.server.port, likedPostJson,
None, True,
self.server.allowDeletion, self.server.allowDeletion,
httpPrefix, __version__, 'inbox', httpPrefix, __version__, 'inbox',
self.server.YTReplacementDomain, self.server.YTReplacementDomain,