Removes caches that cause CSRF token failures
This commit is contained in:
@ -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 %}
|
||||
|
Reference in New Issue
Block a user