aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-16 21:25:11 -0500
committerubq323 <ubq323@ubq323.website>2025-06-17 12:05:16 +0100
commit831f93b5e6eb4b44985426ce19c8ad3bcc70c1d0 (patch)
tree680afe84bd0602219ad2fb2ad87167ccc60f7196
parent866e64f6a3dcfb93a107ce2a04099f4013a329f0 (diff)
limit tags shown in thread list
-rw-r--r--apioforum/forum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apioforum/forum.py b/apioforum/forum.py
index c44afe6..05fe231 100644
--- a/apioforum/forum.py
+++ b/apioforum/forum.py
@@ -189,7 +189,7 @@ def view_forum(forum,page=1):
"""SELECT tags.* FROM tags
INNER JOIN thread_tags ON thread_tags.tag = tags.id
WHERE thread_tags.thread = ?
- ORDER BY tags.id;
+ ORDER BY tags.id LIMIT 4;
""",(thread['id'],)).fetchall()
if thread['poll'] is not None: