From a40d3979232d9f113e7367b0d9fb369ca7d7b09d Mon Sep 17 00:00:00 2001
From: towards-a-new-leftypol
Date: Sat, 20 Jan 2024 16:40:39 -0500
Subject: [PATCH] Fix links, especially in truncated posts
---
templates/post_reply.html | 4 ++--
templates/post_thread.html | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/templates/post_reply.html b/templates/post_reply.html
index d5f6313f..e9c10941 100644
--- a/templates/post_reply.html
+++ b/templates/post_reply.html
@@ -14,13 +14,13 @@
{% include 'post/time.html' %}
{% include 'post/poster_id.html' %}
- No.
+ No.
{{ post.id }}
{% include 'post/fileinfo.html' %}
{% include 'post/post_controls.html' %}
1 %}style="clear:both"{% endif %}>
- {% endapply %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% apply remove_whitespace %}
+ {% endapply %}{% if index %}{{ post.body|truncate_body(post.link()) }}{% else %}{{ post.body }}{% endif %}{% apply remove_whitespace %}
{% if post.modifiers['ban message'] %}
{{ config.mod.ban_message|sprintf(post.modifiers['ban message']) }}
{% endif %}
diff --git a/templates/post_thread.html b/templates/post_thread.html
index 3914675d..94d73700 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -15,7 +15,7 @@
{% include 'post/time.html' %}
{% include 'post/poster_id.html' %}
-
No.
+
No.
{{ post.id }}
{% if post.sticky %}
{% if config.font_awesome %}
@@ -58,7 +58,7 @@
{% include 'post/post_controls.html' %}
- {% endapply %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% apply remove_whitespace %}
+ {% endapply %}{% if index %}{{ post.body|truncate_body(post.link()) }}{% else %}{{ post.body }}{% endif %}{% apply remove_whitespace %}
{% if post.modifiers['ban message'] %}
{{ config.mod.ban_message|sprintf(post.modifiers['ban message']) }}
{% endif %}