versand funktioniert so
This commit is contained in:
parent
fbff6bfce2
commit
8a61d36316
|
|
@ -31,19 +31,26 @@ class NotificationPayloadFactory
|
|||
$payload = [
|
||||
'topic' => [
|
||||
'source' => 'text',
|
||||
'value' => $forumName,
|
||||
'webUrl' => $topicUrl,
|
||||
'value' => 'Flarum Test',
|
||||
'webUrl' => 'https://teams.microsoft.com/l/entity/d92b1be6-ea92-46b1-bcb0-c08ffdd1a61a/8ffe419f-ca44>
|
||||
],
|
||||
'activityType' => $activityType === '' ? 'systemDefault' : $activityType,
|
||||
'activityType' => 'systemDefault',
|
||||
'previewText' => [
|
||||
'content' => $previewText,
|
||||
'content' => 'Test aus Flarum',
|
||||
],
|
||||
'chainId' => $this->buildChainId($recipient, $blueprint),
|
||||
'templateParameters' => [
|
||||
[
|
||||
'name' => 'systemDefaultText',
|
||||
'value' => 'Test aus Flarum',
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
if ($teamsAppId !== '') {
|
||||
$payload['teamsAppId'] = $teamsAppId;
|
||||
}
|
||||
|
||||
// if ($teamsAppId !== '') {
|
||||
// $payload['teamsAppId'] = $teamsAppId;
|
||||
// }
|
||||
|
||||
if ($iconId !== '') {
|
||||
$payload['iconId'] = $iconId;
|
||||
|
|
|
|||
Loading…
Reference in New Issue