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