From f9cff1f137b1e9545ae52851e185a2e519637e99 Mon Sep 17 00:00:00 2001 From: JM Date: Tue, 5 May 2026 15:57:22 +0200 Subject: [PATCH] test --- src/Support/NotificationPayloadFactory.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/Support/NotificationPayloadFactory.php b/src/Support/NotificationPayloadFactory.php index b3dc0e6..367ba3e 100644 --- a/src/Support/NotificationPayloadFactory.php +++ b/src/Support/NotificationPayloadFactory.php @@ -53,22 +53,25 @@ class NotificationPayloadFactory $teamsManifestAppId = 'd92b1be6-ea92-46b1-bcb0-c08ffdd1a61a'; $teamsEntityId = '8ffe419f-ca44-4627-a4b2-f223da2d07aa'; - // Diskussion in den Tab-Kontext schreiben + $discussionTitle = 'Backup-Strategie für Forum'; + $discussionUrl = 'https://forum.sbp.de/d/34-which-file-extensions-are-allowed-for-uploads/2'; + $subEntityId = 'discussion:34:2'; + $contextJson = json_encode([ - 'subEntityId' => $discussionUrl, - 'subEntityLabel' => $discussionTitle, - 'subEntityWebUrl' => $discussionUrl, + 'subEntityId' => $subEntityId, ], JSON_UNESCAPED_SLASHES); - // Teams-Deep-Link auf den Personal Tab + $teamsDeepLink = sprintf( - 'https://teams.microsoft.com/l/entity/%s/%s?webUrl=%s&label=%s&context=%s', - rawurlencode($teamsManifestAppId), - rawurlencode($teamsEntityId), + 'https://teams.microsoft.com/l/entity/%s/%s?tenantId=%s&webUrl=%s&label=%s&context=%s', + rawurlencode('d92b1be6-ea92-46b1-bcb0-c08ffdd1a61a'), + rawurlencode('8ffe419f-ca44-4627-a4b2-f223da2d07aa'), + rawurlencode('e2052793-a0f4-47d8-a3a3-52c926e79df5'), rawurlencode($discussionUrl), rawurlencode($discussionTitle), rawurlencode($contextJson) ); + $payload = [ 'topic' => [ 'source' => 'text',