Check that calendar path contains calendar

main
Bob Mottram 2022-02-13 15:05:38 +00:00
parent 7dd4fe6b55
commit 407fcc038f
1 changed files with 2 additions and 0 deletions

View File

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