1
0
Fork 0
forked from mirror/pixelfed

Update FollowerService

This commit is contained in:
Daniel Supernault 2022-06-05 02:35:14 -06:00
parent 28a2eb87e7
commit 4ecbd7cbe4
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 3 additions and 1 deletions

View file

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

View file

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