stash
This commit is contained in:
parent
6a4e881051
commit
437c5395e8
1 changed files with 3 additions and 2 deletions
|
@ -256,12 +256,13 @@ Your c3lf (Cloakroom + Lost&Found) Team'''.format(active_issue_thread.short_uuid
|
||||||
notify_subject = active_issue_thread.name[:47] + "..."
|
notify_subject = active_issue_thread.name[:47] + "..."
|
||||||
else:
|
else:
|
||||||
notify_subject = active_issue_thread.name
|
notify_subject = active_issue_thread.name
|
||||||
|
eventslug = target_event.slug if target_event else "37C3" # TODO 37C3 should not be hardcoded
|
||||||
if new:
|
if new:
|
||||||
notification = f"""New issue \"{active_issue_thread.name}\" [{active_issue_thread.short_uuid()}] created
|
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:
|
else:
|
||||||
notification = f"""Reply to issue \"{active_issue_thread.name}\" [{active_issue_thread.short_uuid()}]
|
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
|
return email, new, reply, notification
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue