FEATURE: Default allow embed secure images in email to true (#10688)

We are making the changes from the PR #10563 the default behaviour. Now, if secure media is enabled, secure images will be embedded in emails by default instead of redacting them and displaying a message. This will be a nicer overall experience by default, and for forums that want to be super strict with redaction this setting can always be disabled.
This commit is contained in:
Martin Brennan 2020-09-17 14:15:02 +10:00 committed by GitHub
parent 80268357e7
commit 49bd066037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -1236,7 +1236,7 @@ files:
default: false
client: true
secure_media_allow_embed_images_in_emails:
default: false
default: true
secure_media_max_email_embed_image_size_kb:
default: 1024
min: 1

View File

@ -4,6 +4,9 @@ require 'rails_helper'
require 'email/sender'
describe Email::Sender do
before do
SiteSetting.secure_media_allow_embed_images_in_emails = false
end
fab!(:post) { Fabricate(:post) }
context "disable_emails is enabled" do