From: Alexander Ebert Date: Fri, 25 Aug 2017 11:32:32 +0000 (+0200) Subject: Force rebuilding response ids for comments X-Git-Tag: 3.1.0_Alpha_2~25^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c4d5b78eba39f063daa23eb582ad8f660f22afbc;p=GitHub%2FWoltLab%2FWCF.git Force rebuilding response ids for comments Fixes #2391 --- diff --git a/wcfsetup/install/files/lib/system/worker/CommentRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/CommentRebuildDataWorker.class.php index f572328264..688c52168f 100644 --- a/wcfsetup/install/files/lib/system/worker/CommentRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/CommentRebuildDataWorker.class.php @@ -18,7 +18,7 @@ class CommentRebuildDataWorker extends AbstractRebuildDataWorker { /** * @inheritDoc */ - protected $limit = 500; + protected $limit = 50; /** * @var HtmlInputProcessor @@ -65,11 +65,16 @@ class CommentRebuildDataWorker extends AbstractRebuildDataWorker { WCF::getDB()->beginTransaction(); /** @var Comment $comment */ foreach ($this->objectList as $comment) { + $commentEditor = new CommentEditor($comment); + + $commentEditor->updateResponseIDs(); + $commentEditor->updateUnfilteredResponseIDs(); + // update message if (!$comment->enableHtml) { $this->getHtmlInputProcessor()->process($comment->message, 'com.woltlab.wcf.comment', $comment->commentID, true); - (new CommentEditor($comment))->update([ + $commentEditor->update([ 'message' => $this->getHtmlInputProcessor()->getHtml(), 'enableHtml' => 1 ]);