From 407fcc038f78d1f0440dd95f039acef54e79ffed Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 13 Feb 2022 15:05:38 +0000 Subject: [PATCH] Check that calendar path contains calendar --- webapp_timeline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp_timeline.py b/webapp_timeline.py index 98c3f0bdd..187d5c9d8 100644 --- a/webapp_timeline.py +++ b/webapp_timeline.py @@ -474,6 +474,8 @@ def html_timeline(css_cache: {}, default_timeline: str, with open(calendar_file, 'r') as calfile: calendar_path = calfile.read().replace('##sent##', '') calendar_path = calendar_path.replace('\n', '').replace('\r', '') + if '/calendar' not in calendar_path: + calendar_path = '/calendar' # should the DM button be highlighted? new_dm = False