ignore weird users
This commit is contained in:
parent
448a4d1025
commit
97e5477f1f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue