Increment

main
Bob Mottram 2019-12-17 10:06:08 +00:00
parent c560466068
commit d57ba31279
1 changed files with 4 additions and 4 deletions

View File

@ -411,24 +411,24 @@ def htmlHashtagSearch(nickname: str,domain: str,port: int, \
if ' ' not in postId: if ' ' not in postId:
nickname=getNicknameFromActor(postId) nickname=getNicknameFromActor(postId)
if not nickname: if not nickname:
index-=1 index+=1
continue continue
else: else:
postFields=postId.split(' ') postFields=postId.split(' ')
if len(postFields)!=3: if len(postFields)!=3:
index=-1 index=+1
continue continue
postDaysSinceEposh=int(postFields[0]) postDaysSinceEposh=int(postFields[0])
nickname=postFields[1] nickname=postFields[1]
postId=postFields[2] postId=postFields[2]
postFilename=locatePost(baseDir,nickname,domain,postId) postFilename=locatePost(baseDir,nickname,domain,postId)
if not postFilename: if not postFilename:
index-=1 index+=1
continue continue
postJsonObject=loadJson(postFilename) postJsonObject=loadJson(postFilename)
if postJsonObject: if postJsonObject:
if not isPublicPost(postJsonObject): if not isPublicPost(postJsonObject):
index-=1 index+=1
continue continue
showIndividualPostIcons=False showIndividualPostIcons=False
if nickname: if nickname: