Skip to content

Commit

Permalink
fix(search): fix 500
Browse files Browse the repository at this point in the history
  • Loading branch information
corenting committed Mar 13, 2024
1 parent 0539d05 commit 153cd39
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Version 0.8.2 (not released yet)
# Version 0.8.2

- Fix settings cookies expiration as reported by [ValiumBear](https://github.com/ValiumBear) [in](https://github.com/corenting/eddrit/issues/143)
- Fix search page not working

# Version 0.8.1

Expand Down
2 changes: 1 addition & 1 deletion eddrit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from eddrit import config

__version__ = "0.8.1"
__version__ = "0.8.2"

logger.remove()
logger.add(sys.stderr, level=config.LOG_LEVEL)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "eddrit"
version = "0.8.1"
version = "0.8.2"
description = "Alternative Reddit frontend"
authors = ["corenting <corenting@gmail.com>"]
license = "MIT"
Expand Down
10 changes: 5 additions & 5 deletions templates/macros/search_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
<div class="row">
{# Thumbnail (first column) #}
<span class="col-auto">
{% if not about_information.icon_url %}
{% if not subreddit.icon_url %}
<img class="post-image-thumbnail-default dark-inverted" src="{{ url_for('static', path='images/icons/globe.svg') }}" height="60" width="60">
{% else %}
<img class="post-image-thumbnail" src="{{ about_information.icon_url }}" height="60" width="60">
<img class="post-image-thumbnail" src="{{ subreddit.icon_url }}" height="60" width="60">
{% endif %}
</span>

{# Content (second column) #}
<div class="col">
{# Title + flairs #}
<div class="col post-title">
<a href="{{ url_for('subreddit', path=about_information.name) }}">
<strong>{{ about_information.title }}</strong>
<a href="{{ url_for('subreddit', path=subreddit.name) }}">
<strong>{{ subreddit.title }}</strong>
</a>
</div>

Expand All @@ -28,7 +28,7 @@
{# Author / subreddit etc. #}
<small class="col">
<div class="post-infos">
{{ about_information.public_description }}
{{ subreddit.public_description }}
</div>
</small>
</span>
Expand Down

0 comments on commit 153cd39

Please sign in to comment.