kopia lustrzana https://github.com/pixelfed/pixelfed
Update FollowServiceWarmCache
rodzic
1ef885c1a1
commit
fe9b4c5a37
|
@ -73,7 +73,7 @@ class FollowServiceWarmCache implements ShouldQueue
|
|||
if(Follower::whereProfileId($id)->orWhere('following_id', $id)->count()) {
|
||||
$following = [];
|
||||
$followers = [];
|
||||
foreach(Follower::lazy() as $follow) {
|
||||
foreach(Follower::where('following_id', $id)->orWhere('profile_id', $id)->lazyById(500) as $follow) {
|
||||
if($follow->following_id != $id && $follow->profile_id != $id) {
|
||||
continue;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue