Skip to content

Commit

Permalink
fixup! fix(comments): Reference ID column is now added on upgrade and…
Browse files Browse the repository at this point in the history
… therefore can be removed
  • Loading branch information
nickvergessen committed Dec 13, 2023
1 parent a0e7fb1 commit b5a6376
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/private/Comments/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1272,12 +1272,7 @@ protected function update(IComment $comment) {
$this->sendEvent(CommentsEvent::EVENT_PRE_UPDATE, $this->get($comment->getId()));
$this->uncache($comment->getId());

try {
$result = $this->updateQuery($comment, true);
} catch (InvalidFieldNameException $e) {
// See function insert() for explanation
$result = $this->updateQuery($comment, false);
}
$result = $this->updateQuery($comment);

if ($comment->getVerb() === 'reaction_deleted') {
$this->deleteReaction($comment);
Expand Down

0 comments on commit b5a6376

Please sign in to comment.