From 28b241295dce81607dbbf92f9ba73f3e586cc9c9 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 6 Jun 2017 16:39:15 -0400 Subject: [PATCH] FIX: Onebox wasn't using correct uri --- lib/oneboxer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oneboxer.rb b/lib/oneboxer.rb index eb495311892..6a190acd181 100644 --- a/lib/oneboxer.rb +++ b/lib/oneboxer.rb @@ -155,7 +155,7 @@ module Oneboxer options[:cookie] = fd.cookie if fd.cookie - r = Onebox.preview(url, options) + r = Onebox.preview(uri.to_s, options) { onebox: r.to_s, preview: r.try(:placeholder_html).to_s } end rescue => e