Kaynağa Gözat

Merge pull request #1590 from pixelfed/frontend-ui-refactor

Update SearchController
daniel 6 yıl önce
ebeveyn
işleme
fdeb424f57
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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],
                             'tokens' => [$item->username],
                             'name'   => $item->name,
                             'name'   => $item->name,
                             'entity' => [
                             'entity' => [
-                                'id' => $item->id,
+                                'id' => (string) $item->id,
                                 'following' => $item->followedBy(Auth::user()->profile),
                                 'following' => $item->followedBy(Auth::user()->profile),
                                 'follow_request' => $item->hasFollowRequestById(Auth::user()->profile_id),
                                 'follow_request' => $item->hasFollowRequestById(Auth::user()->profile_id),
                                 'thumb' => $item->avatarUrl()
                                 'thumb' => $item->avatarUrl()