1
0
Fork 0

Don't fav things multiple times

Fixes #28
This commit is contained in:
Mouse Reeve 2020-02-19 00:22:55 -08:00
parent a664ad3328
commit 77841909fe
4 changed files with 21 additions and 6 deletions

View file

@ -67,6 +67,11 @@
<p>{{ activity.content | safe }}</p>
</div>
<div class="interaction">
{% if activity.favorites.all %}
<span>
{{ activity.favorites.count }} like(s)
</span>
{% endif %}
<form name="favorite" action="/favorite/{{ activity.id }}" method="post">
{% csrf_token %}
<button>⭐️ Like</button>