Skip to content

Commit b5a6376

Browse files
committed
fixup! fix(comments): Reference ID column is now added on upgrade and therefore can be removed
1 parent a0e7fb1 commit b5a6376

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

lib/private/Comments/Manager.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,12 +1272,7 @@ protected function update(IComment $comment) {
12721272
$this->sendEvent(CommentsEvent::EVENT_PRE_UPDATE, $this->get($comment->getId()));
12731273
$this->uncache($comment->getId());
12741274

1275-
try {
1276-
$result = $this->updateQuery($comment, true);
1277-
} catch (InvalidFieldNameException $e) {
1278-
// See function insert() for explanation
1279-
$result = $this->updateQuery($comment, false);
1280-
}
1275+
$result = $this->updateQuery($comment);
12811276

12821277
if ($comment->getVerb() === 'reaction_deleted') {
12831278
$this->deleteReaction($comment);

0 commit comments

Comments
 (0)