mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Throw if trying to save reaction without support
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
e0b89cd576
commit
ecb98f772e
1 changed files with 4 additions and 0 deletions
|
|
@ -1099,6 +1099,10 @@ class Manager implements ICommentsManager {
|
|||
* @since 9.0.0
|
||||
*/
|
||||
public function save(IComment $comment) {
|
||||
if ($comment->getVerb() === 'reaction') {
|
||||
$this->throwIfNotSupportReactions();
|
||||
}
|
||||
|
||||
if ($this->prepareCommentForDatabaseWrite($comment)->getId() === '') {
|
||||
$result = $this->insert($comment);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue