From e8ecfce1348cce9868a1b5743a3599667fcc78ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 28 Sep 2017 17:33:19 +0200 Subject: [PATCH] Notifications: Workaround to use announcement type for now MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Notification/Notifier.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index f8d313f1a..e884ed879 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -57,19 +57,6 @@ class Notifier implements INotifier { $this->userManager = $userManager; $this->cardMapper = $cardMapper; $this->boardMapper = $boardMapper; - $definitions->addDefinition('highlight', [ - 'author' => 'Deck', - 'app' => 'deck', - 'since' => '12.0.0', - 'parameters' => [ - 'name' => [ - 'since' => '12.0.0', - 'required' => true, - 'description' => 'The text that should be highlighted.', - 'example' => 'Foobar', - ] - ], - ]); } /** @@ -94,7 +81,6 @@ class Notifier implements INotifier { $notification->setParsedSubject( (string) $l->t('The card "%s" on "%s" has reached its due date.', $notification->getSubjectParameters()) ); - // FIXME: Use type that is provided by NC / if custom type is supported $notification->setRichSubject( (string) $l->t('The card {card} on {board} has reached its due date.'), [ @@ -131,7 +117,8 @@ class Notifier implements INotifier { 'name' => $dn, ], 'board' => [ - 'type' => 'highlight', + 'id' => null, + 'type' => 'announcement', 'name' => $params[0], ], ]