From b5bead1fe31bf97b2620ba7656fa5867d8568be2 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 9 Jun 2017 12:15:09 -0400 Subject: [PATCH] FIX: Don't use `target=_blank` for local oneboxes --- Gemfile.lock | 2 +- spec/components/onebox/engine/discourse_local_onebox_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index c9de9386732..0be44e10e68 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -214,7 +214,7 @@ GEM omniauth-twitter (1.3.0) omniauth-oauth (~> 1.1) rack - onebox (1.8.11) + onebox (1.8.12) fast_blank (>= 1.0.0) htmlentities (~> 4.3) moneta (~> 1.0) diff --git a/spec/components/onebox/engine/discourse_local_onebox_spec.rb b/spec/components/onebox/engine/discourse_local_onebox_spec.rb index c0729285941..5b76dc521fc 100644 --- a/spec/components/onebox/engine/discourse_local_onebox_spec.rb +++ b/spec/components/onebox/engine/discourse_local_onebox_spec.rb @@ -5,7 +5,7 @@ describe Onebox::Engine::DiscourseLocalOnebox do before { SiteSetting.external_system_avatars_enabled = false } def build_link(url) - %|#{url}| + %|#{url}| end context "for a link to a post" do