mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #1206 from openclassify/#4738
#4738 ocify new improvments and bug
This commit is contained in:
commit
5997508034
@ -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', []);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user