code cleanup

This commit is contained in:
Hugh Rundle
2021-11-28 21:38:28 +11:00
parent f828f36cc5
commit e9bb2a04a4
7 changed files with 37 additions and 26 deletions

View File

@ -46,9 +46,9 @@
<span class="subtitle is-7 is-block">@{{ user|username }}</span>
</a>
<form name="follow" method="post" action="{% url 'follow' %}/?next={% url 'ostatus-success' %}?following={{ user.username }}">
{% csrf_token %}
<input name="user" value={{ user.username }} hidden>
<button class="button is-link" type="submit">{% trans "Follow " %} {{ user.name }}</button>
{% csrf_token %}
<input name="user" value={{ user.username }} hidden>
<button class="button is-link" type="submit">{% trans "Follow " %} {{ user.name }}</button>
</form>
</div>
</div>

View File

@ -92,7 +92,6 @@
</div>
</footer>
<!-- TODO: do we need any of this stuff? -->
<script>
var csrf_token = '{{ csrf_token }}';
</script>