mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 06:23:18 +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);
|
$path = $this->buildPath($id);
|
||||||
$dir = storage_path('app/'.$path);
|
$dir = storage_path('app/'.$path);
|
||||||
$this->checkDir($dir);
|
$this->checkDir($dir);
|
||||||
$name = 'avatar.'.$file->guessExtension();
|
$name = str_random(20).'_avatar.'.$file->guessExtension();
|
||||||
$res = ['root' => 'storage/app/'.$path, 'name' => $name, 'storage' => $path];
|
$res = ['root' => 'storage/app/'.$path, 'name' => $name, 'storage' => $path];
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
|
|
Loading…
Reference in a new issue