diff --git a/app/assets/javascripts/discourse/app/models/composer.js b/app/assets/javascripts/discourse/app/models/composer.js index 396de7cefbc..060e511e575 100644 --- a/app/assets/javascripts/discourse/app/models/composer.js +++ b/app/assets/javascripts/discourse/app/models/composer.js @@ -1211,11 +1211,6 @@ const Composer = RestModel.extend({ if (isEmpty(this.reply)) { return false; } - - // Do not save when the reply's length is too small - if (this.replyLength < this.minimumPostLength) { - return false; - } } return true; diff --git a/app/assets/javascripts/discourse/tests/acceptance/composer-test.js b/app/assets/javascripts/discourse/tests/acceptance/composer-test.js index 9327d4e6f1c..fa46c043f1c 100644 --- a/app/assets/javascripts/discourse/tests/acceptance/composer-test.js +++ b/app/assets/javascripts/discourse/tests/acceptance/composer-test.js @@ -912,6 +912,16 @@ acceptance("Composer", function (needs) { await click(".save-or-cancel .cancel"); assert.notOk(exists(".discard-draft-modal .save-draft")); }); + + test("Saves drafts that only contain quotes", async function (assert) { + await visit("/t/internationalization-localization/280"); + await click("#topic-footer-buttons .create"); + + await fillIn(".d-editor-input", "[quote]some quote[/quote]"); + + await click(".save-or-cancel .cancel"); + assert.ok(exists(".discard-draft-modal .save-draft")); + }); }); acceptance("Composer - Customizations", function (needs) {