Skip to content

Commit

Permalink
fix 500
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jun 5, 2024
1 parent a61e7f4 commit e7e2eab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions common/templates/_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ <h6 class="nickname">{{ identity.display_name }}</h6>
</article>
</section>
{% endif %}
{% if top_tags is not None %}
{% if identity.user and top_tags is not None %}
<section>
<article>
<details {% if top_tags %}class="auto-collapse" open{% endif %}>
<summary>{% trans 'Tags' %}</summary>
<div class="tag-list">
{% for t in top_tags %}
<span>
<a href="{% url 'journal:user_tag_member_list' identity.user.handler t.title %}">
<a href="{% url 'journal:user_tag_member_list' identity.handle t.title %}">
{% if t.pinned %}
<i class="fa-solid fa-crown" title="{% trans "featured tag" %}"></i>
{% endif %}
Expand All @@ -207,7 +207,7 @@ <h6 class="nickname">{{ identity.display_name }}</h6>
{% endfor %}
</div>
<small>
<a href="{% url 'journal:user_tag_list' identity.user.handler %}">({% trans 'show all' %})</a>
<a href="{% url 'journal:user_tag_list' identity.handle %}">({% trans 'show all' %})</a>
</small>
</details>
</article>
Expand Down
2 changes: 1 addition & 1 deletion users/templates/users/profile_actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</a>
</span>
{% endif %}
{% if identity.user and identity.user.mastodon_account %}
{% if identity.user.mastodon_account %}
<span>
<a href="{{ identity.user.mastodon_account.url }}"
target="_blank"
Expand Down

0 comments on commit e7e2eab

Please sign in to comment.