Removes caches that cause CSRF token failures

This commit is contained in:
Mouse Reeve
2022-01-07 09:47:58 -08:00
parent f9d7512ffd
commit abcae9e6c4
3 changed files with 0 additions and 12 deletions

View File

@ -1,8 +1,5 @@
{% load i18n %}
{% load cache %}
{# 6 month cache #}
{% cache 15552000 follow_button request.user.id user.id %}
{% if request.user == user or not request.user.is_authenticated %}
{% elif user in request.user.blocks.all %}
{% include 'snippets/block_button.html' with blocks=True %}
@ -46,4 +43,3 @@
{% endif %}
</div>
{% endif %}
{% endcache %}