From 44daf2b79a14ba1da0ec7903d02b00eeed38b039 Mon Sep 17 00:00:00 2001 From: Apple Date: Thu, 26 Aug 2021 00:00:13 +0800 Subject: [PATCH] =?UTF-8?q?@0826-=E4=BF=AE=E5=A4=8D=E6=8A=95=E7=A5=A8?= =?UTF-8?q?=E5=B8=96=E7=9B=B8=E5=85=B3=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=97=A0=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Notifications/Messages/SimpleMessage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notifications/Messages/SimpleMessage.php b/src/Notifications/Messages/SimpleMessage.php index 1f2e6c5..dbe6ee4 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']); } -- Gitee