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; + } + } +}