weiter raten...
This commit is contained in:
parent
3480c9c1cb
commit
60974b68b0
|
|
@ -48,16 +48,19 @@ class NotificationPayloadFactory
|
||||||
// 'postLiked' => 'Your post has been liked',
|
// 'postLiked' => 'Your post has been liked',
|
||||||
// default => 'New sbp forum update',
|
// default => 'New sbp forum update',
|
||||||
// };
|
// };
|
||||||
$discussionTitle = 'Backup-Strategie für Forum';
|
$discussionTitle = 'Backup-Strategie für Forum';
|
||||||
$discussionUrl = 'https://forum.sbp.de/d/34-which-file-extensions-are-allowed-for-uploads/2';
|
$discussionUrl = 'https://forum.sbp.de/d/34-which-file-extensions-are-allowed-for-uploads/2';
|
||||||
$previewSnippet = 'Bitte prüft, ob wir tägliche Snapshots brauchen.';
|
$previewSnippet = 'Bitte prüft, ob wir tägliche Snapshots brauchen.';
|
||||||
$reasonText = 'Neue Antwort in beobachteter Diskussion';
|
$reasonText = 'Neue Antwort in beobachteter Diskussion';
|
||||||
|
|
||||||
|
// ✅ Teams Browser Deep Link (offiziell unterstützt)
|
||||||
|
$teamsBrowserLink = 'https://teams.microsoft.com/l/browser/' . rawurlencode($discussionUrl);
|
||||||
|
|
||||||
$payload = [
|
$payload = [
|
||||||
'topic' => [
|
'topic' => [
|
||||||
'source' => 'text',
|
'source' => 'text',
|
||||||
'value' => $discussionTitle,
|
'value' => $discussionTitle,
|
||||||
'webUrl' => $discussionUrl, // ✅ DIREKT ins Forum
|
'webUrl' => $teamsBrowserLink, // ✅ MUSS /l/ sein
|
||||||
],
|
],
|
||||||
'activityType' => 'systemDefault',
|
'activityType' => 'systemDefault',
|
||||||
'previewText' => [
|
'previewText' => [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue