notes: mark links as nofollow.

This commit is contained in:
evazion
2017-06-15 20:37:32 -05:00
parent 845b278b1e
commit 91ed793120
2 changed files with 8 additions and 0 deletions

View File

@@ -59,6 +59,9 @@ module NoteSanitizer
text,
:elements => ALLOWED_ELEMENTS,
:attributes => ALLOWED_ATTRIBUTES,
:add_attributes => {
"a" => { "rel" => "nofollow" },
},
:protocols => {
"a" => {
"href" => ["http", "https", :relative]