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();