Only remove last post if there are some quantity

main
Bob Mottram 2023-01-02 11:27:52 +00:00
parent 58971bb3b7
commit 5257ba4f55
1 changed files with 2 additions and 1 deletions

View File

@ -1073,7 +1073,8 @@ def html_timeline(default_timeline: str,
# if showing the page down icon then remove the last item so that # if showing the page down icon then remove the last item so that
# firstpost does not overlap on the next timeline # firstpost does not overlap on the next timeline
if last_item_str and first_post_id != last_post_id: 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 tl_str += text_mode_separator
first_post = '' first_post = ''
if last_post_id: if last_post_id: