forked from indymedia/epicyon
Check for empty timeline
parent
c2ce6b4064
commit
06086d9b6f
|
@ -2161,19 +2161,20 @@ def htmlTimeline(translate: {},pageNumber: int, \
|
||||||
|
|
||||||
# show the posts
|
# show the posts
|
||||||
itemCtr=0
|
itemCtr=0
|
||||||
for item in timelineJson['orderedItems']:
|
if timelineJson:
|
||||||
if item['type']=='Create' or item['type']=='Announce':
|
for item in timelineJson['orderedItems']:
|
||||||
itemCtr+=1
|
if item['type']=='Create' or item['type']=='Announce':
|
||||||
avatarUrl=getPersonAvatarUrl(baseDir,item['actor'],personCache)
|
itemCtr+=1
|
||||||
tlStr+= \
|
avatarUrl=getPersonAvatarUrl(baseDir,item['actor'],personCache)
|
||||||
individualPostAsHtml(iconsDir,translate,pageNumber, \
|
tlStr+= \
|
||||||
baseDir,session,wfRequest,personCache, \
|
individualPostAsHtml(iconsDir,translate,pageNumber, \
|
||||||
nickname,domain,port,item,avatarUrl,True, \
|
baseDir,session,wfRequest,personCache, \
|
||||||
allowDeletion, \
|
nickname,domain,port,item,avatarUrl,True, \
|
||||||
httpPrefix,projectVersion, \
|
allowDeletion, \
|
||||||
boxName!='dm', \
|
httpPrefix,projectVersion, \
|
||||||
showIndividualPostIcons, \
|
boxName!='dm', \
|
||||||
manuallyApproveFollowers,False)
|
showIndividualPostIcons, \
|
||||||
|
manuallyApproveFollowers,False)
|
||||||
|
|
||||||
# page down arrow
|
# page down arrow
|
||||||
if itemCtr>=itemsPerPage:
|
if itemCtr>=itemsPerPage:
|
||||||
|
|
Loading…
Reference in New Issue