mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
don't show pfp in navbar
This commit is contained in:
parent
67bf5494fd
commit
b04a0daf38
3 changed files with 4 additions and 7 deletions
|
|
@ -22,7 +22,7 @@ class User extends Authenticatable implements Searchable
|
|||
protected $fillable = [
|
||||
'name',
|
||||
'email',
|
||||
'avatarExt',
|
||||
'avatar_ext',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
|
|
@ -60,7 +60,7 @@ class User extends Authenticatable implements Searchable
|
|||
|
||||
public function getAvatarBase64(): string
|
||||
{
|
||||
$ext = $this->avatarExt;
|
||||
$ext = $this->avatar_ext;
|
||||
$file = Storage::get("avatars/$this->id");
|
||||
$data = base64_encode($file);
|
||||
return "data:image/$ext;base64,$data";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue