Don't need the duplicate detection

main2
Bob Mottram 2019-09-30 17:26:59 +01:00
parent 06474686cf
commit d7be1ce7e4
1 changed files with 9 additions and 20 deletions

View File

@ -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'