Indicate calendar reminder events

main
Bob Mottram 2021-03-06 19:04:41 +00:00
parent 4667b455b7
commit 3cd11b73cf
1 changed files with 9 additions and 2 deletions

View File

@ -136,6 +136,7 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {},
eventPlace = None
postId = None
senderName = ''
senderActor = None
# get the time place and description
for ev in eventPost:
if ev['type'] == 'Event':
@ -165,7 +166,13 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {},
# prepend a link to the sender of the calendar item
if senderName and eventDescription:
senderActor2 = senderActor.replace('/users/', '/@')
if senderActor not in eventDescription and \
senderActor2 not in eventDescription:
eventDescription = senderName + eventDescription
else:
eventDescription = \
translate['Reminder'] + ': ' + eventDescription
deleteButtonStr = ''
if postId: