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:
@@ -283,13 +283,13 @@ class DeckProvider implements IProvider {
|
|||||||
try {
|
try {
|
||||||
$comment = $this->commentsManager->get((int)$subjectParams['comment']);
|
$comment = $this->commentsManager->get((int)$subjectParams['comment']);
|
||||||
$event->setParsedMessage($comment->getMessage());
|
$event->setParsedMessage($comment->getMessage());
|
||||||
|
$params['comment'] =[
|
||||||
|
'type' => 'highlight',
|
||||||
|
'id' => $subjectParams['comment'],
|
||||||
|
'name' => $comment->getMessage()
|
||||||
|
];
|
||||||
} catch (NotFoundException $e) {
|
} catch (NotFoundException $e) {
|
||||||
}
|
}
|
||||||
$params['comment'] =[
|
|
||||||
'type' => 'highlight',
|
|
||||||
'id' => $subjectParams['comment'],
|
|
||||||
'name' => $comment->getMessage()
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
return $params;
|
return $params;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user