From 710f8659b72ac1e40bacf22da2e743119c0e44ef Mon Sep 17 00:00:00 2001 From: biglyderv Date: Tue, 28 Jan 2025 18:33:16 -0500 Subject: [PATCH] ignore unfollowed users from matrix --- docs/stats.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/stats.php b/docs/stats.php index 7d304d5..76cd5d2 100755 --- a/docs/stats.php +++ b/docs/stats.php @@ -39,7 +39,8 @@ foreach ($result as $usern) { $theuser = $usern['username']; - $followers = $frs[$theuser]; + $followers = $frs[$theuser]; + foreach ($followers as $follown) { $fn = $follown['target']; @@ -60,6 +61,7 @@ foreach ($result as $usera) { $una = $usera['username']; $pr[$una] = 0; + if (count($frs[$una]) == 0) continue; foreach ($result as $userb) { $unb = $userb['username']; $matrixe[$una][$unb] = 0;