This commit is contained in:
HolgerHatGarKeineNode
2023-03-03 19:38:54 +01:00
parent a96d94c7d8
commit fcf73ad364

View File

@@ -37,6 +37,8 @@ class PublishUnpublishedItems extends Command
->when($modelName === 'LibraryItem', fn($q) => $q->where('type', '<>', 'markdown_article')) ->when($modelName === 'LibraryItem', fn($q) => $q->where('type', '<>', 'markdown_article'))
->orderByDesc('created_at') ->orderByDesc('created_at')
->first(); ->first();
$this->publishOnNostr($model, $this->getText($model)); if ($model){
$this->publishOnNostr($model, $this->getText($model));
}
} }
} }