mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:34:31 +08:00
FIX - limit number of embedded media items in a post (#10391)
* FIX - limit number of embedded media items in a post * Add renamed settings to DeprecatedSettings
This commit is contained in:
@ -50,7 +50,7 @@ const ORIGINAL_SETTINGS = {
|
||||
traditional_markdown_linebreaks: false,
|
||||
suppress_reply_directly_below: true,
|
||||
suppress_reply_directly_above: true,
|
||||
newuser_max_images: 0,
|
||||
newuser_max_embedded_media: 0,
|
||||
newuser_max_attachments: 0,
|
||||
display_name_on_posts: true,
|
||||
short_progress_text_threshold: 10000,
|
||||
|
@ -38,7 +38,7 @@ QUnit.test("uploading one file", function(assert) {
|
||||
});
|
||||
|
||||
QUnit.test("new user cannot upload images", function(assert) {
|
||||
this.siteSettings.newuser_max_images = 0;
|
||||
this.siteSettings.newuser_max_embedded_media = 0;
|
||||
sandbox.stub(bootbox, "alert");
|
||||
|
||||
assert.not(
|
||||
|
Reference in New Issue
Block a user