Moves blocking side effects to model

This commit is contained in:
Mouse Reeve
2021-01-24 17:07:19 -08:00
parent 4e0ec12052
commit d994d8d3c8
5 changed files with 28 additions and 10 deletions

View File

@ -36,6 +36,10 @@
</div>
{% if not is_self %}
{% include 'snippets/follow_button.html' with user=user %}
<form name="blocks" method="post" action="/block/{{ user.id }}">
{% csrf_token %}
<button type="submit">Block</button>
</form>
{% endif %}
{% if is_self and user.follower_requests.all %}