mirror of
https://github.com/discourse/discourse.git
synced 2025-05-19 05:33:05 +08:00
FIX: Don't use target=_blank
for local oneboxes
This commit is contained in:
parent
28b241295d
commit
4324ea024c
@ -214,7 +214,7 @@ GEM
|
|||||||
omniauth-twitter (1.3.0)
|
omniauth-twitter (1.3.0)
|
||||||
omniauth-oauth (~> 1.1)
|
omniauth-oauth (~> 1.1)
|
||||||
rack
|
rack
|
||||||
onebox (1.8.11)
|
onebox (1.8.12)
|
||||||
fast_blank (>= 1.0.0)
|
fast_blank (>= 1.0.0)
|
||||||
htmlentities (~> 4.3)
|
htmlentities (~> 4.3)
|
||||||
moneta (~> 1.0)
|
moneta (~> 1.0)
|
||||||
|
@ -5,7 +5,7 @@ describe Onebox::Engine::DiscourseLocalOnebox do
|
|||||||
before { SiteSetting.external_system_avatars_enabled = false }
|
before { SiteSetting.external_system_avatars_enabled = false }
|
||||||
|
|
||||||
def build_link(url)
|
def build_link(url)
|
||||||
%|<a href="#{url}" target="_blank" rel="nofollow noopener">#{url}</a>|
|
%|<a href="#{url}" rel="nofollow noopener">#{url}</a>|
|
||||||
end
|
end
|
||||||
|
|
||||||
context "for a link to a post" do
|
context "for a link to a post" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user