From 769ebac593b553b31cf83729f10ad563353b1512 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 25 May 2024 16:06:15 +0200 Subject: [PATCH] not showing archived posts --- res/forum/api/get_posts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/forum/api/get_posts.php b/res/forum/api/get_posts.php index a1a63f5..4b349a4 100644 --- a/res/forum/api/get_posts.php +++ b/res/forum/api/get_posts.php @@ -15,7 +15,7 @@ if ($out -> num_rows != 1) return; } -$out = $database -> query("SELECT title, description, photo_id, author FROM post ORDER BY id DESC"); +$out = $database -> query("SELECT title, description, photo_id, author FROM post WHERE archived=0 ORDER BY id DESC"); $output = array();