From 9ca03762fe22430684b3050ea7525f258806271d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 23 Feb 2020 11:25:16 +0000 Subject: [PATCH] Link only the post id --- happening.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/happening.py b/happening.py index 58530acfe..eb967fbd1 100644 --- a/happening.py +++ b/happening.py @@ -80,8 +80,9 @@ def getTodaysEvents(baseDir: str,nickname: str,domain: str, \ int(eventTime.strftime("%m"))==monthNumber and \ int(eventTime.strftime("%d"))==dayNumber: dayOfMonth=str(int(eventTime.strftime("%d"))) - # link to the id so that the event can be easily deleted - tag['postId']=postId + if '#statuses#' in postId: + # link to the id so that the event can be easily deleted + tag['postId']=postId.split('#statuses#')[1] postEvent.append(tag) else: # tag is a place