Explorar o código

Update InternalApiController

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
406bbe0047
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/InternalApiController.php

+ 1 - 1
app/Http/Controllers/InternalApiController.php

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