From 4ecbd7cbe4fdd25f878b4527e1463ac4290c6e14 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 5 Jun 2022 02:35:14 -0600 Subject: [PATCH] Update FollowerService --- app/Services/FollowerService.php | 2 +- app/Services/RelationshipService.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/FollowerService.php b/app/Services/FollowerService.php index 3ea3d8dd..cbf176ef 100644 --- a/app/Services/FollowerService.php +++ b/app/Services/FollowerService.php @@ -78,11 +78,11 @@ class FollowerService } return $profile ->followers() - ->whereLocalProfile(false) ->get() ->map(function($follow) { return $follow->sharedInbox ?? $follow->inbox_url; }) + ->filter() ->unique() ->values() ->toArray(); diff --git a/app/Services/RelationshipService.php b/app/Services/RelationshipService.php index 1237c0eb..7c4091f0 100644 --- a/app/Services/RelationshipService.php +++ b/app/Services/RelationshipService.php @@ -57,6 +57,8 @@ class RelationshipService public static function refresh($aid, $tid) { + Cache::forget('pf:services:follow:audience:' . $aid); + Cache::forget('pf:services:follow:audience:' . $tid); self::delete($tid, $aid); self::delete($aid, $tid); self::get($tid, $aid);