浏览代码

Update InternalApiController

Daniel Supernault 6 年之前
父节点
当前提交
406bbe0047
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)