Merge pull request #949 from keriati/fix/554-private-app-icon
fix: Don't write existing icons to disk
This commit is contained in:
commit
198ffd7665
|
@ -214,7 +214,9 @@ class ItemController extends Controller
|
||||||
if (strpos($path, 'icons/icons/') !== false) {
|
if (strpos($path, 'icons/icons/') !== false) {
|
||||||
$path = str_replace('icons/icons/','icons/',$path);
|
$path = str_replace('icons/icons/','icons/',$path);
|
||||||
}
|
}
|
||||||
Storage::disk('public')->put($path, $contents);
|
if(! Storage::disk('public')->exists($path)) {
|
||||||
|
Storage::disk('public')->put($path, $contents);
|
||||||
|
}
|
||||||
$request->merge([
|
$request->merge([
|
||||||
'icon' => $path,
|
'icon' => $path,
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue