Use Markdown in mail notifications. Fixes #2935

This commit is contained in:
James Brooks
2018-03-17 13:09:25 +00:00
parent c6d70cb2b0
commit d4cd685b79
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ class NewIncidentNotification extends Notification
->greeting(trans('notifications.incident.new.mail.greeting', ['app_name' => Config::get('setting.app_name')]))
->line($content)
->action(trans('notifications.incident.new.mail.action'), cachet_route('incident', [$this->incident]))
->line($this->incident->message)
->markdown($this->incident->message)
->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));
}

View File

@@ -82,7 +82,7 @@ class IncidentUpdatedNotification extends Notification
]))
->line($content)
->action(trans('notifications.incident.update.mail.action'), cachet_route('incident', [$this->update->incident]))
->line($this->update->message)
->markdown($this->update->message)
->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));
}