mirror of
https://github.com/flarum/core.git
synced 2025-07-31 05:30:38 +02:00
Fix avatar files not being deleted. Fixes #1918
This commit is contained in:
committed by
Daniël Klabbers
parent
2a8ed53934
commit
308f2c9efd
@@ -46,7 +46,7 @@ class AvatarUploader
|
||||
|
||||
public function remove(User $user)
|
||||
{
|
||||
$avatarPath = $user->avatar_path;
|
||||
$avatarPath = $user->getOriginal('avatar_url');
|
||||
|
||||
$user->afterSave(function () use ($avatarPath) {
|
||||
if ($this->uploadDir->has($avatarPath)) {
|
||||
|
Reference in New Issue
Block a user