ignore weird users

This commit is contained in:
biglyderv 2025-02-06 07:07:35 -05:00
parent 448a4d1025
commit 97e5477f1f

View file

@ -6,7 +6,7 @@ function get_handler()
{ {
global $db; global $db;
$stmt = $db->prepare("SELECT * FROM main.follow"); $stmt = $db->prepare("SELECT * FROM main.follow WHERE username IN (SELECT username FROM auth)");
$stmt->execute([]); $stmt->execute([]);
$result = $stmt->fetchAll(PDO::FETCH_DEFAULT); $result = $stmt->fetchAll(PDO::FETCH_DEFAULT);
$result = array_reverse($result, true); $result = array_reverse($result, true);