Update AP Helpers, use MediaStoragePipeline

This commit is contained in:
Daniel Supernault 2021-01-24 13:32:20 -07:00
parent be6d12fcb6
commit 01a1ffd64a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -27,6 +27,7 @@ use App\Services\ActivityPubFetchService;
use App\Services\ActivityPubDeliveryService;
use App\Services\MediaPathService;
use App\Services\MediaStorageService;
use App\Jobs\MediaPipeline\MediaStoragePipeline;
class Helpers {
@ -400,6 +401,7 @@ class Helpers {
$media->remote_url = $url;
$media->mime = $type;
$media->save();
MediaStoragePipeline::dispatch($media);
}
$status->viewType();