mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
wtf
This commit is contained in:
parent
2e75c1c407
commit
67bf5494fd
8 changed files with 18 additions and 23 deletions
|
|
@ -22,14 +22,14 @@ class Profile extends Component
|
|||
return view('livewire.pages.profile')->title($this->user->name);
|
||||
}
|
||||
|
||||
public function updated($name, $value)
|
||||
public function updated()
|
||||
{
|
||||
if (Auth::id() != $this->user->id)
|
||||
{
|
||||
abort(401);
|
||||
}
|
||||
|
||||
$this->validateOnly($name);
|
||||
$this->validate();
|
||||
|
||||
$this->user->avatarExt = $this->avatar->getClientOriginalExtension();
|
||||
$this->user->save();
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class Upload extends Component
|
|||
$preview = Image::read($fullImg)->scaleDown(width: 1280, height: 720);
|
||||
Storage::put("posts/$post->id/preview", $preview->encodeByExtension($post->extension, quality: 70));
|
||||
|
||||
return $this->redirect('/');
|
||||
return $this->redirect("/posts/$post->id");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue