mirror of https://gitlab.com/bashrc2/epicyon
Check snooze status
parent
7ffc14e0fb
commit
168bcf84f9
|
@ -2593,7 +2593,11 @@ def htmlTimeline(recentPostsCache: {},maxRecentPosts: int,
|
||||||
tlStr+='<div class="galleryContainer">\n'
|
tlStr+='<div class="galleryContainer">\n'
|
||||||
for item in timelineJson['orderedItems']:
|
for item in timelineJson['orderedItems']:
|
||||||
if item['type']=='Create' or item['type']=='Announce':
|
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
|
currTlStr=None
|
||||||
if boxName!='tlmedia' and recentPostsCache.get('index'):
|
if boxName!='tlmedia' and recentPostsCache.get('index'):
|
||||||
postId=item['id'].replace('/activity','').replace('/','#')
|
postId=item['id'].replace('/activity','').replace('/','#')
|
||||||
|
@ -2602,8 +2606,8 @@ def htmlTimeline(recentPostsCache: {},maxRecentPosts: int,
|
||||||
currTlStr=recentPostsCache['html'][postId]
|
currTlStr=recentPostsCache['html'][postId]
|
||||||
currTlStr= \
|
currTlStr= \
|
||||||
preparePostFromHtmlCache(currTlStr,boxName,pageNumber)
|
preparePostFromHtmlCache(currTlStr,boxName,pageNumber)
|
||||||
#print('Post obtained from recent cache ('+str(len(recentPostsCache['index']))+'): '+postId)
|
|
||||||
if not currTlStr:
|
if not currTlStr:
|
||||||
|
# read the post from disk
|
||||||
currTlStr= \
|
currTlStr= \
|
||||||
individualPostAsHtml(recentPostsCache,maxRecentPosts, \
|
individualPostAsHtml(recentPostsCache,maxRecentPosts, \
|
||||||
iconsDir,translate,pageNumber, \
|
iconsDir,translate,pageNumber, \
|
||||||
|
|
Loading…
Reference in New Issue