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

Update SearchController
This commit is contained in:
daniel 2019-08-11 23:41:07 -06:00 committed by GitHub
commit fdeb424f57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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