1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 16:24:29 +00:00

Update AP helpers, only run MediaStoragePipeline if using cloud storage

This commit is contained in:
Daniel Supernault 2021-01-24 21:13:31 -07:00
parent 258b2729d3
commit 77f21b4b33
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -401,7 +401,10 @@ class Helpers {
$media->remote_url = $url;
$media->mime = $type;
$media->save();
MediaStoragePipeline::dispatch($media);
if(config('pixelfed.cloud_storage') == true) {
MediaStoragePipeline::dispatch($media);
}
}
$status->viewType();