forked from indymedia/epicyon
Check snooze status
parent
7ffc14e0fb
commit
168bcf84f9
|
@ -2593,7 +2593,11 @@ def htmlTimeline(recentPostsCache: {},maxRecentPosts: int,
|
|||
tlStr+='<div class="galleryContainer">\n'
|
||||
for item in timelineJson['orderedItems']:
|
||||
if item['type']=='Create' or item['type']=='Announce':
|
||||
#avatarUrl=getPersonAvatarUrl(baseDir,item['actor'],personCache)
|
||||
# is the actor who sent this post snoozed?
|
||||
if isPersonSnoozed(baseDir,nickname,domain,item['actor']):
|
||||
continue
|
||||
|
||||
# is the post in the memory cache of recent ones?
|
||||
currTlStr=None
|
||||
if boxName!='tlmedia' and recentPostsCache.get('index'):
|
||||
postId=item['id'].replace('/activity','').replace('/','#')
|
||||
|
@ -2602,8 +2606,8 @@ def htmlTimeline(recentPostsCache: {},maxRecentPosts: int,
|
|||
currTlStr=recentPostsCache['html'][postId]
|
||||
currTlStr= \
|
||||
preparePostFromHtmlCache(currTlStr,boxName,pageNumber)
|
||||
#print('Post obtained from recent cache ('+str(len(recentPostsCache['index']))+'): '+postId)
|
||||
if not currTlStr:
|
||||
# read the post from disk
|
||||
currTlStr= \
|
||||
individualPostAsHtml(recentPostsCache,maxRecentPosts, \
|
||||
iconsDir,translate,pageNumber, \
|
||||
|
|
Loading…
Reference in New Issue