Test for index

main
Bob Mottram 2019-11-24 11:31:50 +00:00
parent bd68e84776
commit dbebc3eaa4
1 changed files with 1 additions and 1 deletions

View File

@ -2581,7 +2581,7 @@ def htmlTimeline(recentPostsCache: {}, \
if item['type']=='Create' or item['type']=='Announce': if item['type']=='Create' or item['type']=='Announce':
#avatarUrl=getPersonAvatarUrl(baseDir,item['actor'],personCache) #avatarUrl=getPersonAvatarUrl(baseDir,item['actor'],personCache)
currTlStr=None currTlStr=None
if recentPostsCache['index']: if recentPostsCache.get('index'):
postId=item['id'].replace('/activity','').replace('/','#') postId=item['id'].replace('/activity','').replace('/','#')
if postId in recentPostsCache['index']: if postId in recentPostsCache['index']:
if recentPostsCache['html'].get(postId): if recentPostsCache['html'].get(postId):