die testinfo war nicht mit drin!

This commit is contained in:
JM 2026-05-05 14:59:18 +02:00
parent ca0f212d37
commit 358817dadd
1 changed files with 15 additions and 8 deletions

View File

@ -29,17 +29,24 @@ class NotificationPayloadFactory
$iconId = trim((string) $this->settings->get('sbp-jm-msteams-webhook.icon_id', ''));
// Diskussionstitel + URL dynamisch aus dem Subject ziehen
$discussionTitle = $this->resolveDiscussionTitle($blueprint) ?? $forumName;
$discussionUrl = $this->resolveSubjectUrl($blueprint) ?? 'https://forum.sbp.de';
$previewSnippet = $this->buildPreviewText($blueprint);
// $discussionTitle = $this->resolveDiscussionTitle($blueprint) ?? $forumName;
// $discussionUrl = $this->resolveSubjectUrl($blueprint) ?? 'https://forum.sbp.de';
// $previewSnippet = $this->buildPreviewText($blueprint);
$discussionTitle = 'Backup-Strategie für Forum';
$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.';
$reasonText = 'Neue Antwort in beobachteter Diskussion';
// Freie Actor+Reason-Zeile für systemDefault
$reasonText = match ($blueprint::getType()) {
'newPost' => 'Neue Antwort in beobachteter Diskussion',
'postMentioned' => 'Du wurdest in einem Beitrag erwähnt',
'userMentioned' => 'Du wurdest erwähnt',
'postLiked' => 'Dein Beitrag wurde geliked',
default => 'Neue Flarum-Benachrichtigung',
'newPost' => 'There was a new answer in one of your folloed posts',
'postMentioned' => 'Your post has been mentioned',
'userMentioned' => 'You have been mentioned',
'postLiked' => 'Your post has been liked',
default => 'New sbp forum update',
};
// Teams-App-/Tab-Ziel aus deinem aktuellen Manifest