mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update FollowServiceWarmCache
This commit is contained in:
parent
1ef885c1a1
commit
fe9b4c5a37
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue