From e416ef05e8a0fd2c3c6cf803c75134bd24b97ee0 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 6 Jan 2022 11:07:22 -0800 Subject: [PATCH] Fixes cache of status interact The CSRF token was being cached which caused submits to fail --- bookwyrm/templates/snippets/status/layout.html | 3 --- .../snippets/status/status_options.html | 16 ++++++++++------ bookwyrm/templatetags/interaction.py | 14 ++++++++++++-- bookwyrm/views/interaction.py | 15 ++++----------- 4 files changed, 26 insertions(+), 22 deletions(-) diff --git a/bookwyrm/templates/snippets/status/layout.html b/bookwyrm/templates/snippets/status/layout.html index 174c379f1..5cbcef208 100644 --- a/bookwyrm/templates/snippets/status/layout.html +++ b/bookwyrm/templates/snippets/status/layout.html @@ -1,7 +1,6 @@ {% extends 'components/card.html' %} {% load i18n %} {% load utilities %} -{% load cache %} {% block card-header %} {% endif %} - {% endcache %} {% else %} diff --git a/bookwyrm/templates/snippets/status/status_options.html b/bookwyrm/templates/snippets/status/status_options.html index 854d4779e..fdf8ac148 100644 --- a/bookwyrm/templates/snippets/status/status_options.html +++ b/bookwyrm/templates/snippets/status/status_options.html @@ -20,17 +20,21 @@ {% if status.status_type != 'GeneratedNote' and status.status_type != 'Rating' %} {% endif %} {% else %} {# things you can do to other people's statuses #}