forked from mirror/pixelfed
Update AvatarController
This commit is contained in:
parent
2d773ca537
commit
3cbe367869
|
@ -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 New Issue