Fix issue with chatroom messages public api

This commit is contained in:
Lncvrt committed 2025-07-12 17:03:19 -07:00
1 parent cfcb0c9d39
commit 38d2e0c628
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ $conn = newConnection();
$stmt = $conn->prepare("
SELECT c.id, c.content, u.username
FROM chats c
JOIN users u ON c.userId = u.uid
JOIN users u ON c.userId = u.id
WHERE u.banned = 0 AND c.deleted = 0
ORDER BY c.id ASC LIMIT 50
");