discourse/config/locales
Martin Brennan dede942007
FEATURE: Allow email image embed with secure media (#10563)
This PR introduces a few important changes to secure media redaction in emails. First of all, two new site settings have been introduced:

* `secure_media_allow_embed_images_in_emails`: If enabled we will embed secure images in emails instead of redacting them.
* `secure_media_max_email_embed_image_size_kb`: The cap to the size of the secure image we will embed, defaulting to 1mb, so the email does not become too big. Max is 10mb. Works in tandem with `email_total_attachment_size_limit_kb`.

`Email::Sender` will now attach images to the email based on these settings. The sender will also call `inline_secure_images` in `Email::Styles` after secure media is redacted and attachments are added to replace redaction messages with attached images. I went with attachment and `cid` URLs because base64 image support is _still_ flaky in email clients.

All redaction of secure media is now handled in `Email::Styles` and calls out to `PrettyText.strip_secure_media` to do the actual stripping and replacing with placeholders. `app/mailers/group_smtp_mailer.rb` and `app/mailers/user_notifications.rb` no longer do any stripping because they are earlier in the pipeline than `Email::Styles`.

Finally the redaction notice has been restyled and includes a link to the media that the user can click, which will show it to them if they have the necessary permissions.

![image](https://user-images.githubusercontent.com/920448/92341012-b9a2c380-f0ff-11ea-860e-b376b4528357.png)
2020-09-10 09:50:16 +10:00
..
client.ar.yml Update translations 2020-09-01 13:02:16 +00:00
client.be.yml Update translations 2020-09-01 13:02:16 +00:00
client.bg.yml Update translations 2020-09-01 13:02:16 +00:00
client.bs_BA.yml Update translations 2020-09-09 14:59:40 +00:00
client.ca.yml Update translations 2020-09-09 14:59:40 +00:00
client.cs.yml Update translations 2020-09-01 13:02:16 +00:00
client.da.yml Update translations 2020-09-01 13:02:16 +00:00
client.de.yml Update translations 2020-09-01 13:02:16 +00:00
client.el.yml Update translations 2020-09-09 14:59:40 +00:00
client.en_US.yml FEATURE: Optionally show local time for user in card (#9527) 2020-04-28 10:13:59 +10:00
client.en.yml fix typo 2020-09-09 13:10:33 -04:00
client.es.yml Update translations 2020-09-01 13:02:16 +00:00
client.et.yml Update translations 2020-09-01 13:02:16 +00:00
client.fa_IR.yml Update translations 2020-09-01 13:02:16 +00:00
client.fi.yml Update translations 2020-09-01 13:02:16 +00:00
client.fr.yml Update translations 2020-09-01 13:02:16 +00:00
client.gl.yml Update translations 2020-09-01 13:02:16 +00:00
client.he.yml Update translations 2020-09-09 14:59:40 +00:00
client.hu.yml Update translations 2020-09-01 13:02:16 +00:00
client.hy.yml Update translations 2020-09-01 13:02:16 +00:00
client.id.yml Update translations 2020-09-01 13:02:16 +00:00
client.it.yml Update translations 2020-09-01 13:02:16 +00:00
client.ja.yml Update translations 2020-09-01 13:02:16 +00:00
client.ko.yml Update translations 2020-09-09 14:59:40 +00:00
client.lt.yml Update translations 2020-09-01 13:02:16 +00:00
client.lv.yml Update translations 2020-09-01 13:02:16 +00:00
client.nb_NO.yml Update translations 2020-09-01 13:02:16 +00:00
client.nl.yml Update translations 2020-09-09 14:59:40 +00:00
client.pl_PL.yml Update translations 2020-09-09 14:59:40 +00:00
client.pt_BR.yml Update translations 2020-09-01 13:02:16 +00:00
client.pt.yml Update translations 2020-09-01 13:02:16 +00:00
client.ro.yml Update translations 2020-09-09 14:59:40 +00:00
client.ru.yml Update translations 2020-09-09 14:59:40 +00:00
client.sk.yml Update translations 2020-09-01 13:02:16 +00:00
client.sl.yml Update translations 2020-09-01 13:02:16 +00:00
client.sq.yml Update translations 2020-09-01 13:02:16 +00:00
client.sr.yml Update translations 2020-09-01 13:02:16 +00:00
client.sv.yml Update translations 2020-09-09 14:59:40 +00:00
client.sw.yml Update translations 2020-09-01 13:02:16 +00:00
client.te.yml Update translations 2020-09-01 13:02:16 +00:00
client.th.yml Update translations 2020-09-01 13:02:16 +00:00
client.tr_TR.yml Update translations 2020-09-01 13:02:16 +00:00
client.uk.yml Update translations 2020-09-01 13:02:16 +00:00
client.ur.yml Update translations 2020-09-01 13:02:16 +00:00
client.vi.yml Update translations 2020-09-09 14:59:40 +00:00
client.zh_CN.yml Update translations 2020-09-09 14:59:40 +00:00
client.zh_TW.yml Update translations 2020-09-01 13:02:16 +00:00
names.yml FEATURE: English locale with international date formats 2019-05-20 13:47:20 +02:00
plurals.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
server.ar.yml Update translations 2020-08-25 13:02:37 +00:00
server.be.yml Update translations 2020-08-25 13:02:37 +00:00
server.bg.yml Update translations 2020-08-25 13:02:37 +00:00
server.bs_BA.yml Update translations 2020-09-09 14:59:40 +00:00
server.ca.yml Update translations 2020-08-25 13:02:37 +00:00
server.cs.yml Update translations 2020-08-25 13:02:37 +00:00
server.da.yml Update translations 2020-08-25 13:02:37 +00:00
server.de.yml Update translations 2020-09-01 13:02:16 +00:00
server.el.yml Update translations 2020-09-09 14:59:40 +00:00
server.en_US.yml FEATURE: English locale with international date formats 2019-05-20 13:47:20 +02:00
server.en.yml FEATURE: Allow email image embed with secure media (#10563) 2020-09-10 09:50:16 +10:00
server.es.yml Update translations 2020-09-09 14:59:40 +00:00
server.et.yml Update translations 2020-08-11 13:04:00 +00:00
server.fa_IR.yml Update translations 2020-08-25 13:02:37 +00:00
server.fi.yml Update translations 2020-08-25 13:02:37 +00:00
server.fr.yml Update translations 2020-09-09 14:59:40 +00:00
server.gl.yml Update translations 2020-08-25 13:02:37 +00:00
server.he.yml Update translations 2020-09-09 14:59:40 +00:00
server.hu.yml Update translations 2020-08-25 13:02:37 +00:00
server.hy.yml Update translations 2020-08-25 13:02:37 +00:00
server.id.yml Update translations 2020-08-11 13:04:00 +00:00
server.it.yml Update translations 2020-08-25 13:02:37 +00:00
server.ja.yml Update translations 2020-08-25 13:02:37 +00:00
server.ko.yml Update translations 2020-08-25 13:02:37 +00:00
server.lt.yml Update translations 2020-08-11 13:04:00 +00:00
server.lv.yml Update translations 2020-08-05 13:55:12 +00:00
server.nb_NO.yml Update translations 2020-08-25 13:02:37 +00:00
server.nl.yml Update translations 2020-09-01 13:02:16 +00:00
server.pl_PL.yml Update translations 2020-09-09 14:59:40 +00:00
server.pt_BR.yml Update translations 2020-08-25 13:02:37 +00:00
server.pt.yml Update translations 2020-08-25 13:02:37 +00:00
server.ro.yml Update translations 2020-08-25 13:02:37 +00:00
server.ru.yml Update translations 2020-09-09 14:59:40 +00:00
server.sk.yml Update translations 2020-08-25 13:02:37 +00:00
server.sl.yml Update translations 2020-08-11 13:04:00 +00:00
server.sq.yml Update translations 2020-08-25 13:02:37 +00:00
server.sr.yml Update translations 2020-08-05 13:55:12 +00:00
server.sv.yml Update translations 2020-09-09 14:59:40 +00:00
server.sw.yml Update translations 2020-08-25 13:02:37 +00:00
server.te.yml Update translations 2020-08-25 13:02:37 +00:00
server.th.yml Update translations 2020-08-05 13:55:12 +00:00
server.tr_TR.yml Update translations 2020-08-26 09:27:35 +00:00
server.uk.yml Update translations 2020-08-25 13:02:37 +00:00
server.ur.yml Update translations 2020-08-25 13:02:37 +00:00
server.vi.yml Update translations 2020-08-25 13:02:37 +00:00
server.zh_CN.yml Update translations 2020-09-09 14:59:40 +00:00
server.zh_TW.yml Update translations 2020-08-25 13:02:37 +00:00
transliterate.ar.yml
transliterate.bg.yml
transliterate.de.yml
transliterate.el.yml UX: Add transliteration support for the Greek language 2019-04-25 22:49:21 +02:00
transliterate.en.yml
transliterate.ru.yml
transliterate.vi.yml