From 97555013a142947e9eba338c9c59dc532f8a08b6 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 24 May 2024 19:04:31 +0200 Subject: [PATCH] included author in get_posts output --- 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 d0037a7..d9b14a6 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 FROM post ORDER BY id DESC"); +$out = $database -> query("SELECT title, description, photo_id, author FROM post ORDER BY id DESC"); $output = array();