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);