Mark links in notes and fetch source data box as external.

This commit is contained in:
evazion
2019-10-13 18:53:46 -05:00
parent 7ebf6ed9d7
commit 07116d1445
4 changed files with 7 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ module NoteSanitizer
:elements => ALLOWED_ELEMENTS,
:attributes => ALLOWED_ATTRIBUTES,
:add_attributes => {
"a" => { "rel" => "nofollow" },
"a" => { "rel" => "external noreferrer nofollow" },
},
:protocols => {
"a" => {