From 1ae11a99edff3e89638d961fa7f8a446853a90ed Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 26 Apr 2024 16:12:58 +0200 Subject: [PATCH] stash --- core/mail/protocol.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/mail/protocol.py b/core/mail/protocol.py index c0a4e50..7ed8eee 100644 --- a/core/mail/protocol.py +++ b/core/mail/protocol.py @@ -256,12 +256,13 @@ Your c3lf (Cloakroom + Lost&Found) Team'''.format(active_issue_thread.short_uuid notify_subject = active_issue_thread.name[:47] + "..." else: notify_subject = active_issue_thread.name + eventslug = target_event.slug if target_event else "37C3" # TODO 37C3 should not be hardcoded if new: notification = f"""New issue \"{active_issue_thread.name}\" [{active_issue_thread.short_uuid()}] created - see https://{PRIMARY_HOST}/{target_event.slug}/ticket/{active_issue_thread.short_uuid.id}/""" + see https://{PRIMARY_HOST}/{eventslug}/ticket/{active_issue_thread.short_uuid.id}/""" else: notification = f"""Reply to issue \"{active_issue_thread.name}\" [{active_issue_thread.short_uuid()}] - see https://{PRIMARY_HOST}/{target_event.slug}/ticket/{active_issue_thread.short_uuid.id}/""" + see https://{PRIMARY_HOST}/{eventslug}/ticket/{active_issue_thread.short_uuid.id}/""" return email, new, reply, notification