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