mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update media:optimize command
This commit is contained in:
parent
bd05f63dec
commit
9524ea19f5
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ class CatchUnoptimizedMedia extends Command
|
||||||
{
|
{
|
||||||
DB::transaction(function() {
|
DB::transaction(function() {
|
||||||
Media::whereNull('processed_at')
|
Media::whereNull('processed_at')
|
||||||
|
->whereNull('remote_url')
|
||||||
->whereNotNull('status_id')
|
->whereNotNull('status_id')
|
||||||
->whereNotNull('media_path')
|
->whereNotNull('media_path')
|
||||||
->whereIn('mime', [
|
->whereIn('mime', [
|
||||||
|
|
Loading…
Reference in a new issue