Add unsub links to all Slack notifications
This commit is contained in:
@@ -135,7 +135,8 @@ class NewIncidentNotification extends Notification
|
||||
->fields(array_filter([
|
||||
'ID' => "#{$this->incident->id}",
|
||||
'Link' => $this->incident->permalink,
|
||||
]));
|
||||
]))
|
||||
->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,7 +143,8 @@ class IncidentUpdatedNotification extends Notification
|
||||
->fields(array_filter([
|
||||
'ID' => "#{$this->update->id}",
|
||||
'Link' => $this->update->permalink,
|
||||
]));
|
||||
]))
|
||||
->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,8 @@ class NewScheduleNotification extends Notification
|
||||
->fields(array_filter([
|
||||
'ID' => "#{$this->schedule->id}",
|
||||
'Status' => $this->schedule->human_status,
|
||||
]));
|
||||
]))
|
||||
->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user