Merge pull request #4151 from pixelfed/staging

Update MediaStorageService, fix improper path
This commit is contained in:
daniel 2023-02-03 22:18:27 -07:00 committed by GitHub
commit e62320085f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,7 @@ class MediaStorageService {
$file = $disk->putFileAs($base, new File($tmpName), $path, 'public');
$permalink = $disk->url($file);
$media->media_path = $base . $path;
$media->media_path = $file;
$media->cdn_url = $permalink;
$media->original_sha256 = $hash;
$media->replicated_at = now();