mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-04-04 11:02:29 -04:00
Improve pinned post parsing for templates
This commit is contained in:
parent
ea79165362
commit
582d14708f
@ -90,7 +90,7 @@ def render_post(post, template, settings, relative_times=False, offset_hours=0):
|
||||
image_descriptions = process_image_descriptions(post.media_attachments)
|
||||
available_data.update(image_descriptions=image_descriptions)
|
||||
# Process if the post is pinned
|
||||
if post.pinned:
|
||||
if post.get("pinned", False):
|
||||
pinned = _("Pinned.")
|
||||
else:
|
||||
pinned = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user