From bae0632e342cebb3a3bc132cfcff19a510316df4 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 30 Sep 2024 05:10:05 -0600 Subject: [PATCH] Add MentionPushNotifyPipeline --- .../MentionPushNotifyPipeline.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 app/Jobs/PushNotificationPipeline/MentionPushNotifyPipeline.php diff --git a/app/Jobs/PushNotificationPipeline/MentionPushNotifyPipeline.php b/app/Jobs/PushNotificationPipeline/MentionPushNotifyPipeline.php new file mode 100644 index 000000000..cad8c6fb5 --- /dev/null +++ b/app/Jobs/PushNotificationPipeline/MentionPushNotifyPipeline.php @@ -0,0 +1,38 @@ +pushToken = $pushToken; + $this->actor = $actor; + } + + /** + * Execute the job. + */ + public function handle(): void + { + try { + NotificationAppGatewayService::send($this->pushToken, 'mention', $this->actor); + } catch (Exception $e) { + return; + } + } +}