diff --git a/src/Support/NotificationPayloadFactory.php b/src/Support/NotificationPayloadFactory.php index 3612219..9bbe4cf 100644 --- a/src/Support/NotificationPayloadFactory.php +++ b/src/Support/NotificationPayloadFactory.php @@ -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;