From 0b70be0c19a39ba61c46b1162c8d06e36e9141f2 Mon Sep 17 00:00:00 2001 From: justindh Date: Wed, 6 Sep 2023 22:43:42 -0700 Subject: [PATCH] update corp leave message to allow corp or char info if either is known (#86) Co-authored-by: Akov --- src/Notifications/Corporations/Mail/CharLeftCorpMsg.php | 2 +- src/Notifications/Corporations/Slack/CharLeftCorpMsg.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Notifications/Corporations/Mail/CharLeftCorpMsg.php b/src/Notifications/Corporations/Mail/CharLeftCorpMsg.php index cf2e44c4..78c1fcf1 100644 --- a/src/Notifications/Corporations/Mail/CharLeftCorpMsg.php +++ b/src/Notifications/Corporations/Mail/CharLeftCorpMsg.php @@ -73,7 +73,7 @@ public function toMail($notifiable) $corporation = CorporationInfo::find($this->notification->text['corpID']); - if (! is_null($corporation) && ! is_null($character)) { + if (! is_null($corporation) || ! is_null($character)) { if (! is_null($corporation)) { diff --git a/src/Notifications/Corporations/Slack/CharLeftCorpMsg.php b/src/Notifications/Corporations/Slack/CharLeftCorpMsg.php index e6a82069..4a780f53 100644 --- a/src/Notifications/Corporations/Slack/CharLeftCorpMsg.php +++ b/src/Notifications/Corporations/Slack/CharLeftCorpMsg.php @@ -73,7 +73,7 @@ public function toSlack($notifiable) $corporation = CorporationInfo::find($this->notification->text['corpID']); - if (! is_null($corporation) && ! is_null($character)) { + if (! is_null($corporation) || ! is_null($character)) { $message->attachment(function ($attachment) use ($character, $corporation) {