mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update MediaStorageService, fix improper path
This commit is contained in:
parent
083f506baf
commit
964c62da31
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ class MediaStorageService {
|
||||||
$file = $disk->putFileAs($base, new File($tmpName), $path, 'public');
|
$file = $disk->putFileAs($base, new File($tmpName), $path, 'public');
|
||||||
$permalink = $disk->url($file);
|
$permalink = $disk->url($file);
|
||||||
|
|
||||||
$media->media_path = $base . $path;
|
$media->media_path = $file;
|
||||||
$media->cdn_url = $permalink;
|
$media->cdn_url = $permalink;
|
||||||
$media->original_sha256 = $hash;
|
$media->original_sha256 = $hash;
|
||||||
$media->replicated_at = now();
|
$media->replicated_at = now();
|
||||||
|
|
Loading…
Add table
Reference in a new issue