Add target=_blank to user note (#2622)

* Add target=_blank to user note

Open new window when click link from user profile in remote instance.

* fix rubocop
th-downstream
Yamagishi Kazutoshi 8 years ago committed by Eugen Rochko
parent a5c8ffcaf9
commit 4a582aceed

@ -12,6 +12,13 @@ class Sanitize
'span' => %w(class),
},
add_attributes: {
'a' => {
'rel' => 'nofollow noopener',
'target' => '_blank',
},
},
protocols: {
'a' => { 'href' => HTTP_PROTOCOLS },
}

Loading…
Cancel
Save