Merge pull request #1206 from openclassify/#4738

#4738 ocify new improvments and bug
This commit is contained in:
spektra2147 2021-10-21 12:59:22 +03:00 committed by GitHub
commit 5997508034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,9 +9,9 @@ class CacheController extends PublicController
public function getUserInfo()
{
$user = auth()->user();
$profile_img = $this->dispatch(
$profile_img = $user ? $this->dispatch(
new MakeImageInstance($user->file ?: 'theme::images/no_profile.svg', 'img')
)->url();
)->url() : $user;
$user = $user ? $user->first_name . ' ' . $user->last_name : $user;
$getAddBlockHtml = new addBlock('navigation/dropdown', []);