mirror of https://gitlab.com/bashrc2/epicyon
Don't need the duplicate detection
parent
06474686cf
commit
d7be1ce7e4
|
@ -2126,7 +2126,6 @@ def htmlTimeline(translate: {},pageNumber: int, \
|
||||||
if pageNumber>1:
|
if pageNumber>1:
|
||||||
tlStr+='<br>'
|
tlStr+='<br>'
|
||||||
tlStr+='<div class="galleryContainer">\n'
|
tlStr+='<div class="galleryContainer">\n'
|
||||||
prevStr=''
|
|
||||||
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)
|
avatarUrl=getPersonAvatarUrl(baseDir,item['actor'],personCache)
|
||||||
|
@ -2140,18 +2139,8 @@ def htmlTimeline(translate: {},pageNumber: int, \
|
||||||
showIndividualPostIcons, \
|
showIndividualPostIcons, \
|
||||||
manuallyApproveFollowers,False)
|
manuallyApproveFollowers,False)
|
||||||
|
|
||||||
if '<img src="' in currTlStr and boxName=='tlmedia':
|
if currTlStr:
|
||||||
# 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:
|
|
||||||
tlStr+=currTlStr
|
tlStr+=currTlStr
|
||||||
prevStr=currValue
|
|
||||||
itemCtr+=1
|
itemCtr+=1
|
||||||
if boxName=='tlmedia':
|
if boxName=='tlmedia':
|
||||||
tlStr+='</div>\n'
|
tlStr+='</div>\n'
|
||||||
|
|
Loading…
Reference in New Issue