diff --git a/src/Notifications/Messages/SimpleMessage.php b/src/Notifications/Messages/SimpleMessage.php index 1f2e6c5bdae049ece93575e7d34078df86ceaebc..dbe6ee419120566ff5b375ff1994253594eec225 100644 --- a/src/Notifications/Messages/SimpleMessage.php +++ b/src/Notifications/Messages/SimpleMessage.php @@ -22,7 +22,7 @@ abstract class SimpleMessage protected function getContent($data) { - if (isset($data['post'])) { + if (isset($this->data['notify_type']) && in_array($this->data['notify_type'], ['sticky', 'essence', 'delete'])) { $data['post'] = Post::changeNotifitionPostContent($data['post']); }