소스 검색

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
master
Yamagishi Kazutoshi 7 년 전
committed by Eugen Rochko
부모
커밋
4a5f73c8ae
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. +7
    -0
      app/lib/sanitize_config.rb

+ 7
- 0
app/lib/sanitize_config.rb 파일 보기

@@ -12,6 +12,13 @@ class Sanitize
'span' => %w(class),
},

add_attributes: {
'a' => {
'rel' => 'nofollow noopener',
'target' => '_blank',
},
},

protocols: {
'a' => { 'href' => HTTP_PROTOCOLS },
}


불러오는 중...
취소
저장