From 5257ba4f55b33c277f4a04b3f9a102e9f74b8e41 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Jan 2023 11:27:52 +0000 Subject: [PATCH] Only remove last post if there are some quantity --- webapp_timeline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp_timeline.py b/webapp_timeline.py index f4a929cee..e1ce92329 100644 --- a/webapp_timeline.py +++ b/webapp_timeline.py @@ -1073,7 +1073,8 @@ def html_timeline(default_timeline: str, # if showing the page down icon then remove the last item so that # firstpost does not overlap on the next timeline if last_item_str and first_post_id != last_post_id: - tl_str = tl_str.replace(last_item_str, '') + if item_ctr > items_per_page / 2: + tl_str = tl_str.replace(last_item_str, '') tl_str += text_mode_separator first_post = '' if last_post_id: