Upload beautify
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
$size = $size ?? 128;
|
||||
$profile = $user->profile ?? null;
|
||||
$hash = $profile->avatar_hash ?? null;
|
||||
$src = $hash
|
||||
? asset("storage/avatars/{$user->id}/{$size}.webp?v={$hash}")
|
||||
: asset('img/default-avatar.webp');
|
||||
$src = \App\Support\AvatarUrl::forUser((int) $user->id, $hash, (int) $size);
|
||||
$alt = $alt ?? ($user->username ?? 'avatar');
|
||||
$class = $class ?? 'rounded-full';
|
||||
@endphp
|
||||
|
||||
Reference in New Issue
Block a user