make cancel post edit button link to the post in question

This commit is contained in:
Lera Elvoé 2025-05-26 04:07:50 +03:00
parent 94f58fef73
commit ea83a31b16
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

View File

@ -72,7 +72,7 @@
<% end %>
<% else %>
<% render("views.common.babycode-editor", {
cancel_url = post_url,
cancel_url = url_for("thread", {slug = thread.slug}, {after = post.id}) .. "#post-" .. post.id,
prefill = post.original_markup,
ta_name = "new_content"
}) %>