Fix issue with chatroom messages public api

This commit is contained in:
2025-07-12 17:03:19 -07:00
parent cfcb0c9d39
commit 38d2e0c628

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