Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit 0091e1c

Browse files
committed
fixed bookmark feature
1 parent 7333830 commit 0091e1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/web/BlogController/show.cfm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<cfif isBookmarked>
1616
<span class="text-success fw-bold">★ Bookmarked</span>
1717
<cfelse>
18-
<button hx-post="/bookmark/toggle" hx-vals='{"blogId": #blog.id#}' hx-target="this" hx-swap="outerHTML"
18+
<button hx-post="/bookmark/toggle" hx-vals='{"blogId": #blog.id#, "authenticityToken": "#authenticityToken()#"}' hx-target="this" hx-swap="outerHTML"
1919
class="btn btn-outline-primary">
2020
☆ Bookmark
2121
</button>

0 commit comments

Comments
 (0)