forked from indymedia/epicyon
Don't need the duplicate detection
parent
06474686cf
commit
d7be1ce7e4
|
@ -2126,7 +2126,6 @@ def htmlTimeline(translate: {},pageNumber: int, \
|
|||
if pageNumber>1:
|
||||
tlStr+='<br>'
|
||||
tlStr+='<div class="galleryContainer">\n'
|
||||
prevStr=''
|
||||
for item in timelineJson['orderedItems']:
|
||||
if item['type']=='Create' or item['type']=='Announce':
|
||||
avatarUrl=getPersonAvatarUrl(baseDir,item['actor'],personCache)
|
||||
|
@ -2140,18 +2139,8 @@ def htmlTimeline(translate: {},pageNumber: int, \
|
|||
showIndividualPostIcons, \
|
||||
manuallyApproveFollowers,False)
|
||||
|
||||
if '<img src="' in currTlStr and boxName=='tlmedia':
|
||||
# extract the image url from the post
|
||||
imageUrl=currTlStr.split('<img src="')[1]
|
||||
imageUrl=imageUrl.split('"')[0]
|
||||
currValue=imageUrl
|
||||
else:
|
||||
currValue=currTlStr
|
||||
|
||||
# avoid repeated posts of the same image
|
||||
if currValue!=prevStr:
|
||||
if currTlStr:
|
||||
tlStr+=currTlStr
|
||||
prevStr=currValue
|
||||
itemCtr+=1
|
||||
if boxName=='tlmedia':
|
||||
tlStr+='</div>\n'
|
||||
|
|
Loading…
Reference in New Issue