Merge pull request #985 from nextcloud/bugfix/979/comments-fix

Only try to add comment details if the comment was found
This commit is contained in:
Julius Härtl
2019-04-10 16:49:29 +02:00
committed by GitHub

View File

@@ -283,13 +283,13 @@ class DeckProvider implements IProvider {
try {
$comment = $this->commentsManager->get((int)$subjectParams['comment']);
$event->setParsedMessage($comment->getMessage());
$params['comment'] =[
'type' => 'highlight',
'id' => $subjectParams['comment'],
'name' => $comment->getMessage()
];
} catch (NotFoundException $e) {
}
$params['comment'] =[
'type' => 'highlight',
'id' => $subjectParams['comment'],
'name' => $comment->getMessage()
];
}
return $params;
}