Reduce indentation

main
Bob Mottram 2020-11-30 10:44:37 +00:00
parent b0360313ce
commit 5355501c5d
1 changed files with 38 additions and 36 deletions

View File

@ -702,42 +702,44 @@ def htmlHashtagSearch(cssCache: {},
index += 1 index += 1
continue continue
postJsonObject = loadJson(postFilename) postJsonObject = loadJson(postFilename)
if postJsonObject: if not postJsonObject:
if not isPublicPost(postJsonObject): index += 1
index += 1 continue
continue if not isPublicPost(postJsonObject):
showIndividualPostIcons = False index += 1
if nickname: continue
showIndividualPostIcons = True showIndividualPostIcons = False
allowDeletion = False if nickname:
showRepeats = showIndividualPostIcons showIndividualPostIcons = True
showIcons = showIndividualPostIcons allowDeletion = False
manuallyApprovesFollowers = False showRepeats = showIndividualPostIcons
showPublicOnly = False showIcons = showIndividualPostIcons
storeToCache = False manuallyApprovesFollowers = False
allowDownloads = True showPublicOnly = False
avatarUrl = None storeToCache = False
showAvatarOptions = True allowDownloads = True
postStr = \ avatarUrl = None
individualPostAsHtml(allowDownloads, recentPostsCache, showAvatarOptions = True
maxRecentPosts, postStr = \
iconsPath, translate, None, individualPostAsHtml(allowDownloads, recentPostsCache,
baseDir, session, wfRequest, maxRecentPosts,
personCache, iconsPath, translate, None,
nickname, domain, port, baseDir, session, wfRequest,
postJsonObject, personCache,
avatarUrl, showAvatarOptions, nickname, domain, port,
allowDeletion, postJsonObject,
httpPrefix, projectVersion, avatarUrl, showAvatarOptions,
'search', allowDeletion,
YTReplacementDomain, httpPrefix, projectVersion,
showPublishedDateOnly, 'search',
showRepeats, showIcons, YTReplacementDomain,
manuallyApprovesFollowers, showPublishedDateOnly,
showPublicOnly, showRepeats, showIcons,
storeToCache) manuallyApprovesFollowers,
if postStr: showPublicOnly,
hashtagSearchForm += separatorStr + postStr storeToCache)
if postStr:
hashtagSearchForm += separatorStr + postStr
index += 1 index += 1
if endIndex < noOfLines - 1: if endIndex < noOfLines - 1: