Skip to content

Commit 293e627

Browse files
-
1 parent 7bd5896 commit 293e627

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/SendNotificationsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9797
try {
9898
$options = [
9999
'json' => [
100-
'text' => $notification->getTitle()."\r\n".$notification->getBody(),
100+
'text' => $notification->getSubject()."\r\n".$notification->getBody(),
101101
],
102102
];
103103
$this->client->request('POST', $subscription->getEndpoint(), $options);
@@ -112,7 +112,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
112112
'json' => [
113113
'@context' => 'https://schema.org/extensions',
114114
'@type' => 'MessageCard',
115-
'title' => $notification->getTitle(),
115+
'title' => $notification->getSubject(),
116116
'text' => $notification->getBody(),
117117
],
118118
];

0 commit comments

Comments
 (0)