Merge "Handle comment truncation in CommentStore"
[lhc/web/wiklou.git] / includes / CommentStore.php
index 0dee961..e9d46cf 100644 (file)
@@ -420,11 +420,9 @@ class CommentStore {
                                __METHOD__
                        );
                        if ( !$comment->id ) {
-                               $comment->id = $dbw->nextSequenceValue( 'comment_comment_id_seq' );
                                $dbw->insert(
                                        'comment',
                                        [
-                                               'comment_id' => $comment->id,
                                                'comment_hash' => $hash,
                                                'comment_text' => $comment->text,
                                                'comment_data' => $dbData,