Adds follow button

This commit is contained in:
Mouse Reeve 2020-01-26 22:47:32 -08:00
parent c7edfe874e
commit 5aa16593ee

View file

@ -32,7 +32,13 @@
<div>
<h2>Followers</h2>
{% for follower in user.followers.all %}
<a href="{{ follower.actor }}">{{ follower.username }}</a>
<div>
<a href="{{ follower.actor }}">{{ follower.username }}</a>
<form action="/follow/" method="post">
<input type="hidden" name="user" value="{{ follower.id }}"></input>
<input type="submit" value="Follow"></input>
</form>
</div>
{% endfor %}
</div>