Notifications: Workaround to use announcement type for now
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
Julius Härtl
parent
07132126a9
commit
e8ecfce134
@@ -57,19 +57,6 @@ class Notifier implements INotifier {
|
|||||||
$this->userManager = $userManager;
|
$this->userManager = $userManager;
|
||||||
$this->cardMapper = $cardMapper;
|
$this->cardMapper = $cardMapper;
|
||||||
$this->boardMapper = $boardMapper;
|
$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(
|
$notification->setParsedSubject(
|
||||||
(string) $l->t('The card "%s" on "%s" has reached its due date.', $notification->getSubjectParameters())
|
(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(
|
$notification->setRichSubject(
|
||||||
(string) $l->t('The card {card} on {board} has reached its due date.'),
|
(string) $l->t('The card {card} on {board} has reached its due date.'),
|
||||||
[
|
[
|
||||||
@@ -131,7 +117,8 @@ class Notifier implements INotifier {
|
|||||||
'name' => $dn,
|
'name' => $dn,
|
||||||
],
|
],
|
||||||
'board' => [
|
'board' => [
|
||||||
'type' => 'highlight',
|
'id' => null,
|
||||||
|
'type' => 'announcement',
|
||||||
'name' => $params[0],
|
'name' => $params[0],
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user