Browse Source

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
closed-social-glitch-2
Yamagishi Kazutoshi 7 years ago
committed by Eugen Rochko
parent
commit
4a5f73c8ae
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      app/lib/sanitize_config.rb

+ 7
- 0
app/lib/sanitize_config.rb View File

@ -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