Explorar o código

Update SearchController

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

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

@@ -51,7 +51,7 @@ class SearchController extends Controller
                             'tokens' => [$item->username],
                             'name'   => $item->name,
                             'entity' => [
-                                'id' => $item->id,
+                                'id' => (string) $item->id,
                                 'following' => $item->followedBy(Auth::user()->profile),
                                 'follow_request' => $item->hasFollowRequestById(Auth::user()->profile_id),
                                 'thumb' => $item->avatarUrl()