diff --git a/app/Listeners/StoreTweetIdentifier.php b/app/Listeners/StoreTweetIdentifier.php deleted file mode 100644 index 873d7fc3a..000000000 --- a/app/Listeners/StoreTweetIdentifier.php +++ /dev/null @@ -1,20 +0,0 @@ -notification instanceof PostArticleToTwitter) { - $event->notification->article()->update([ - 'tweet_id' => $event->response->id, - ]); - } - } -} diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index 59c171f01..e3e5e1108 100644 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -16,7 +16,6 @@ use App\Listeners\SendNewArticleNotification; use App\Listeners\SendNewReplyNotification; use App\Listeners\SendNewSpamNotification; -use App\Listeners\StoreTweetIdentifier; use App\Listeners\SubscribeUsersMentionedInReply; use App\Listeners\SubscribeUsersMentionedInThread; use App\Models\User; @@ -24,7 +23,6 @@ use Illuminate\Auth\Events\Registered; use Illuminate\Auth\Listeners\SendEmailVerificationNotification; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; -use Illuminate\Notifications\Events\NotificationSent; class EventServiceProvider extends ServiceProvider { @@ -43,9 +41,6 @@ class EventServiceProvider extends ServiceProvider EmailAddressWasChanged::class => [ RenewEmailVerificationNotification::class, ], - NotificationSent::class => [ - StoreTweetIdentifier::class, - ], Registered::class => [ SendEmailVerificationNotification::class, ],