mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 08:14:10 +00:00
Update RemoteFollow Pipeline
This commit is contained in:
parent
87a7fc5cdd
commit
2a3aa3f85b
1 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,7 @@ use Illuminate\Queue\InteractsWithQueue;
|
|||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use App\Jobs\StatusPipeline\NewStatusPipeline;
|
||||
use App\Jobs\ImageOptimizePipeline\ImageThumbnail;
|
||||
|
||||
class RemoteFollowImportRecent implements ShouldQueue
|
||||
{
|
||||
|
@ -216,7 +217,9 @@ class RemoteFollowImportRecent implements ShouldQueue
|
|||
$media->size = 0;
|
||||
$media->mime = $mime;
|
||||
$media->save();
|
||||
|
||||
|
||||
ImageThumbnail::dispatch($media);
|
||||
|
||||
return true;
|
||||
} catch (Exception $e) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue