Update InternalApiController

pull/593/head
Daniel Supernault 6 years ago
parent fa6c3dd3f6
commit 406bbe0047
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -126,7 +126,7 @@ class InternalApiController extends Controller
$profile = Auth::user()->profile;
$pid = $profile->id;
$following = Cache::remember('feature:discover:following:'.$pid, 60, function() use ($pid) {
return Follower::whereProfileId($pid)->pluck('following_id');
return Follower::whereProfileId($pid)->pluck('following_id')->toArray();
});
$filters = Cache::remember("user:filter:list:$pid", 60, function() use($pid) {
return UserFilter::whereUserId($pid)

Loading…
Cancel
Save