Set the comment link on render instead of creation
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
4f9ff96f79
commit
e675c2a66c
|
@ -100,11 +100,7 @@ class Listener {
|
|||
->setApp('comments')
|
||||
->setObject('comment', $comment->getId())
|
||||
->setSubject('mention', [ $comment->getObjectType(), $comment->getObjectId() ])
|
||||
->setDateTime($comment->getCreationDateTime())
|
||||
->setLink($this->urlGenerator->linkToRouteAbsolute(
|
||||
'comments.Notifications.view',
|
||||
['id' => $comment->getId()])
|
||||
);
|
||||
->setDateTime($comment->getCreationDateTime());
|
||||
|
||||
return $notification;
|
||||
}
|
||||
|
|
|
@ -139,7 +139,11 @@ class Notifier implements INotifier {
|
|||
]
|
||||
);
|
||||
}
|
||||
$notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/comment.svg')));
|
||||
$notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/comment.svg')))
|
||||
->setLink($this->url->linkToRouteAbsolute(
|
||||
'comments.Notifications.view',
|
||||
['id' => $comment->getId()])
|
||||
);
|
||||
|
||||
return $notification;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue