forked from mirror/pixelfed
Update FollowerService
This commit is contained in:
parent
28a2eb87e7
commit
4ecbd7cbe4
2 changed files with 3 additions and 1 deletions
|
@ -78,11 +78,11 @@ class FollowerService
|
||||||
}
|
}
|
||||||
return $profile
|
return $profile
|
||||||
->followers()
|
->followers()
|
||||||
->whereLocalProfile(false)
|
|
||||||
->get()
|
->get()
|
||||||
->map(function($follow) {
|
->map(function($follow) {
|
||||||
return $follow->sharedInbox ?? $follow->inbox_url;
|
return $follow->sharedInbox ?? $follow->inbox_url;
|
||||||
})
|
})
|
||||||
|
->filter()
|
||||||
->unique()
|
->unique()
|
||||||
->values()
|
->values()
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
|
@ -57,6 +57,8 @@ class RelationshipService
|
||||||
|
|
||||||
public static function refresh($aid, $tid)
|
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($tid, $aid);
|
||||||
self::delete($aid, $tid);
|
self::delete($aid, $tid);
|
||||||
self::get($tid, $aid);
|
self::get($tid, $aid);
|
||||||
|
|
Loading…
Reference in a new issue