From ffc949406dd4d5f51966fd36fefbff07abb1319f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 11 Oct 2019 19:08:47 +0100 Subject: [PATCH] Remove activity --- inbox.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/inbox.py b/inbox.py index bd77e88d..5fa0c2dd 100644 --- a/inbox.py +++ b/inbox.py @@ -1417,10 +1417,7 @@ def inboxUpdateCalendar(baseDir: str,handle: str,postJsonObject: {}) -> None: if not os.path.isdir(calendarPath+'/'+str(eventYear)): os.mkdir(calendarPath+'/'+str(eventYear)) calendarFilename=calendarPath+'/'+str(eventYear)+'/'+str(eventMonthNumber)+'.txt' - postId=postJsonObject['id'] - if '#' in postId: - postId=postId.split('#')[0] - postId=postId.replace('/','#') + postId=postJsonObject['id'].replace('/activity','').replace('/','#') if os.path.isfile(calendarFilename): if postId in open(calendarFilename).read(): return