diff --git a/docs/api/followjson.php b/docs/api/followjson.php index 9a0923c..3ced180 100644 --- a/docs/api/followjson.php +++ b/docs/api/followjson.php @@ -6,7 +6,7 @@ function get_handler() { 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([]); $result = $stmt->fetchAll(PDO::FETCH_DEFAULT); $result = array_reverse($result, true);