versand funktioniert so

This commit is contained in:
JM 2026-05-05 13:57:12 +02:00
parent fbff6bfce2
commit 8a61d36316
1 changed files with 15 additions and 8 deletions

View File

@ -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;