fix: fall back to default public avatar image if user has no avatar
This commit is contained in:
@@ -55,9 +55,7 @@
|
||||
@php
|
||||
$avatarUrl = Auth::check() && Auth::user()->avatar
|
||||
? Auth::user()->avatar
|
||||
: (Auth::check() && Auth::user()->name
|
||||
? 'https://api.dicebear.com/7.x/notionists/svg?seed=' . urlencode(Auth::user()->name) . '&backgroundColor=e2e8f0'
|
||||
: asset('images/avatar.png'));
|
||||
: asset('images/avatar.png');
|
||||
|
||||
$deptName = 'Product Team';
|
||||
if (Auth::check()) {
|
||||
|
||||
Reference in New Issue
Block a user