mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
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
This commit is contained in:
parent
fdcf884cf7
commit
4a5f73c8ae
@ -12,6 +12,13 @@ class Sanitize
|
||||
'span' => %w(class),
|
||||
},
|
||||
|
||||
add_attributes: {
|
||||
'a' => {
|
||||
'rel' => 'nofollow noopener',
|
||||
'target' => '_blank',
|
||||
},
|
||||
},
|
||||
|
||||
protocols: {
|
||||
'a' => { 'href' => HTTP_PROTOCOLS },
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user