From f39825a80f7091b865252413fbaca7e564a94eac Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 30 Sep 2019 17:17:21 +0100 Subject: [PATCH] Avoid repeated posts in timeline --- webinterface.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/webinterface.py b/webinterface.py index 1d4975e7..ddd93dcf 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2129,7 +2129,6 @@ def htmlTimeline(translate: {},pageNumber: int, \ prevStr='' for item in timelineJson['orderedItems']: if item['type']=='Create' or item['type']=='Announce': - itemCtr+=1 avatarUrl=getPersonAvatarUrl(baseDir,item['actor'],personCache) currTlStr= \ individualPostAsHtml(iconsDir,translate,pageNumber, \ @@ -2140,10 +2139,20 @@ def htmlTimeline(translate: {},pageNumber: int, \ boxName!='dm', \ showIndividualPostIcons, \ manuallyApproveFollowers,False) - # avoid repeated posts - if currTlStr!=prevStr: + + if '