search: fix check for topic/programs

This commit is contained in:
Eragon 2023-09-12 22:05:38 +02:00
parent f194baae00
commit 25f63b4648
Signed by: Eragon
GPG Key ID: 087126EBFC725006
1 changed files with 2 additions and 0 deletions

View File

@ -54,7 +54,9 @@
{% if i.forum %}
<a href="{{ url_for('forum_topic', f=i.forum, page=(i , 'fin')) }}">{{ i.title }}</a>
{% elif i.thread %}
{% if i.thread.owner_topic %}
<a href="{{ url_for('redirect_post', postid=i.id) }}">{{ i.thread.owner_topic[0].title }}</a>
{% endif %}
{% endif %}
{{ i.headline }}<br>
</div>