mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 17:53:16 +00:00
Add fix for InstagramImport
This commit is contained in:
parent
4150a72b18
commit
f5aa89b2d2
1 changed files with 5 additions and 1 deletions
|
@ -101,7 +101,11 @@ class ImportInstagram implements ShouldQueue
|
||||||
|
|
||||||
$path = storage_path("app/$importData->path");
|
$path = storage_path("app/$importData->path");
|
||||||
$storagePath = "public/m/{$monthHash}/{$userHash}";
|
$storagePath = "public/m/{$monthHash}/{$userHash}";
|
||||||
$newPath = "app/$storagePath/$filename";
|
$dir = "app/$storagePath";
|
||||||
|
if(!is_dir(storage_path($dir))) {
|
||||||
|
mkdir(storage_path($dir), 0777, true);
|
||||||
|
}
|
||||||
|
$newPath = "$dir/$filename";
|
||||||
$fs->move($path,storage_path($newPath));
|
$fs->move($path,storage_path($newPath));
|
||||||
$path = $newPath;
|
$path = $newPath;
|
||||||
$hash = \hash_file('sha256', storage_path($path));
|
$hash = \hash_file('sha256', storage_path($path));
|
||||||
|
|
Loading…
Reference in a new issue