summaryrefslogtreecommitdiff
path: root/views/event.handlebars
diff options
context:
space:
mode:
authorredneckcatholic <redneckcatholic@users.noreply.github.com>2022-11-23 00:02:18 -0500
committerredneckcatholic <redneckcatholic@users.noreply.github.com>2022-11-23 01:22:12 -0500
commitd39734bf3fd84c568c15e90d6edb75e68d74b3e1 (patch)
treebf1820828f450977151bf6dd4cfd12af87a4026c /views/event.handlebars
parente93b23db71df18480b29ed53c1b8247e7f0f83a7 (diff)
Fix event deletion
Append the editToken to the deleteEvent form action to fix the 404 error on event deletion. Refactor broadcastDeleteMessage so that eventDeletion works when federation is disabled. Send deletion emails within the callback, otherwise DB lookup will fail on deleted event id. Fixes #15
Diffstat (limited to 'views/event.handlebars')
-rwxr-xr-xviews/event.handlebars2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/event.handlebars b/views/event.handlebars
index ff88ba5..3071b64 100755
--- a/views/event.handlebars
+++ b/views/event.handlebars
@@ -377,7 +377,7 @@
<span aria-hidden="true">&times;</span>
</button>
</div>
- <form id="deleteEventForm" action="/deleteevent/{{eventData.id}}" method="post">
+ <form id="deleteEventForm" action="/deleteevent/{{eventData.id}}/{{eventData.editToken}}" method="post">
<div class="modal-body">
<p>Are you sure you want to delete this event? This action cannot be undone.</p>
</div>