From a6dc1b52baaa997fd45cf27613f7595fff668683 Mon Sep 17 00:00:00 2001 From: 153 <52@4x13.net> Date: Sun, 27 Oct 2019 17:34:11 -0700 Subject: [PATCH] Minor bugfixes; increased comment length on page 1 --- index.py3 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/index.py3 b/index.py3 index 68d3f72..2f0e472 100755 --- a/index.py3 +++ b/index.py3 @@ -186,8 +186,8 @@ def bbs_thread(t_id='', prev=0): reply[2]) reply[2] = do_format(reply[2]) - if len(reply[2].split('
')) > 8: - reply[2] = '
'.join(reply[2].split('
')[:9])[:850] + if len(reply[2].split('
')) > 12: + reply[2] = '
'.join(reply[2].split('
')[:12])[:850] if "" in reply[2]: reply[2] += "" if "" in reply[2]: @@ -205,8 +205,8 @@ def bbs_thread(t_id='', prev=0): reply[2] += "

Post shortened. " reply[2] += "[" reply[2] += "View full thread]
" - elif len(reply[2]) > 850: - reply[2] = reply[2][:850] + elif len(reply[2]) > 1400: + reply[2] = reply[2][:1400] if "" in reply[2]: reply[2] += "" if "" in reply[2]: @@ -215,7 +215,7 @@ def bbs_thread(t_id='', prev=0): reply[2] += f"" reply[2] += "[View full thread]" show_r = conf[13] - if int(r_cnt) > show_r and p_n == int(r_cnt): + if (int(r_cnt) - 1) > show_r and p_n == int(r_cnt): reply[2] += "