From 81fd5f4420baebdf11687481371a53f5bba79ab0 Mon Sep 17 00:00:00 2001 From: A Date: Fri, 26 Jan 2018 11:13:24 +0100 Subject: [PATCH] Adds a line in the notification email to manage its subscriptions. Untill now a subscriber wasn't able to manage its subscription because there was no link anywhere, so it was forced to unsubscribe and then subscribe again. Now the link is in the notification email, after 'Unsubscribe at'. Related to #2887 --- app/Notifications/Incident/NewIncidentNotification.php | 3 ++- .../IncidentUpdate/IncidentUpdatedNotification.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Notifications/Incident/NewIncidentNotification.php b/app/Notifications/Incident/NewIncidentNotification.php index 3248b6f4..64a36b7d 100644 --- a/app/Notifications/Incident/NewIncidentNotification.php +++ b/app/Notifications/Incident/NewIncidentNotification.php @@ -79,7 +79,8 @@ class NewIncidentNotification extends Notification ->line($content) ->action(trans('notifications.incident.new.mail.action'), cachet_route('incident', [$this->incident])) ->markdown($this->incident->message) - ->line(trans('cachet.subscriber.manage.manage_at_link', ['link' => cachet_route('subscribe.manage', $notifiable->verify_code)])) + ->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)])) + ->line(trans('cachet.subscriber.manage.manage_at_link', ['link' => cachet_route('subscribe.manage', $notifiable->verify_code)])); } /** diff --git a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php index 605e1ca3..b8cd3060 100644 --- a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php +++ b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php @@ -84,7 +84,7 @@ class IncidentUpdatedNotification extends Notification ->action(trans('notifications.incident.update.mail.action'), cachet_route('incident', [$this->update->incident])) ->markdown($this->update->message) ->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)])) - ->line(trans('cachet.subscriber.manage.manage_at_link', ['link' => cachet_route('subscribe.manage', $notifiable->verify_code)]); + ->line(trans('cachet.subscriber.manage.manage_at_link', ['link' => cachet_route('subscribe.manage', $notifiable->verify_code)])); }