Fix searching with new Mastodon.py

This commit is contained in:
Jason McBrayer 2019-05-12 06:55:25 -04:00
parent dc6260d406
commit 2dbb508fb4
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ django-widget-tweaks = "*"
"html5lib" = "*" "html5lib" = "*"
idna = "*" idna = "*"
markdown = "*" markdown = "*"
"mastodon.py" = "*" "mastodon.py" = ">=1.4.2"
python-dateutil = "*" python-dateutil = "*"
pytz = "*" pytz = "*"
requests = "*" requests = "*"

View File

@ -75,7 +75,7 @@ mastodon.search("<query>")
<h2 class="subtitle">Tags</h2> <h2 class="subtitle">Tags</h2>
<ul> <ul>
{% for tag in results.hashtags %} {% for tag in results.hashtags %}
<li><a href="{% url 'tag' tag %}">#{{ tag }}</a></li> <li><a href="{% url 'tag' tag.name %}">#{{ tag.name }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>