mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 21:43:17 +00:00
Update AvatarController
This commit is contained in:
parent
2d773ca537
commit
3cbe367869
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class AvatarController extends Controller
|
|||
$path = $this->buildPath($id);
|
||||
$dir = storage_path('app/'.$path);
|
||||
$this->checkDir($dir);
|
||||
$name = 'avatar.'.$file->guessExtension();
|
||||
$name = str_random(20).'_avatar.'.$file->guessExtension();
|
||||
$res = ['root' => 'storage/app/'.$path, 'name' => $name, 'storage' => $path];
|
||||
|
||||
return $res;
|
||||
|
|
Loading…
Reference in a new issue