mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
nostr events schedule
This commit is contained in:
@@ -35,6 +35,7 @@ class PublishUnpublishedItems extends Command
|
|||||||
->when($modelName === 'CourseEvent', fn($q) => $q->where('from', '>', now()))
|
->when($modelName === 'CourseEvent', fn($q) => $q->where('from', '>', now()))
|
||||||
->when($modelName === 'MeetupEvent', fn($q) => $q->where('start', '>', now()))
|
->when($modelName === 'MeetupEvent', fn($q) => $q->where('start', '>', now()))
|
||||||
->when($modelName === 'LibraryItem', fn($q) => $q->where('type', '<>', 'markdown_article'))
|
->when($modelName === 'LibraryItem', fn($q) => $q->where('type', '<>', 'markdown_article'))
|
||||||
|
->orderByDesc('created_at')
|
||||||
->first();
|
->first();
|
||||||
$this->publishOnNostr($model, $this->getText($model));
|
$this->publishOnNostr($model, $this->getText($model));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,11 +26,10 @@ class EventServiceProvider extends ServiceProvider
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The event to listener mappings for the application.
|
* The event to listener mappings for the application.
|
||||||
*
|
|
||||||
* @var array<class-string, array<int, class-string>>
|
* @var array<class-string, array<int, class-string>>
|
||||||
*/
|
*/
|
||||||
protected $listen = [
|
protected $listen = [
|
||||||
Login::class => [
|
Login::class => [
|
||||||
AddLoginReputation::class,
|
AddLoginReputation::class,
|
||||||
],
|
],
|
||||||
Registered::class => [
|
Registered::class => [
|
||||||
|
|||||||
Reference in New Issue
Block a user