Moves blocking side effects to model
This commit is contained in:
parent
4e0ec12052
commit
d994d8d3c8
5 changed files with 28 additions and 10 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue