mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -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()
|
public function getUserInfo()
|
||||||
{
|
{
|
||||||
$user = auth()->user();
|
$user = auth()->user();
|
||||||
$profile_img = $this->dispatch(
|
$profile_img = $user ? $this->dispatch(
|
||||||
new MakeImageInstance($user->file ?: 'theme::images/no_profile.svg', 'img')
|
new MakeImageInstance($user->file ?: 'theme::images/no_profile.svg', 'img')
|
||||||
)->url();
|
)->url() : $user;
|
||||||
$user = $user ? $user->first_name . ' ' . $user->last_name : $user;
|
$user = $user ? $user->first_name . ' ' . $user->last_name : $user;
|
||||||
|
|
||||||
$getAddBlockHtml = new addBlock('navigation/dropdown', []);
|
$getAddBlockHtml = new addBlock('navigation/dropdown', []);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user