FIX: Onebox wasn't using correct uri

This commit is contained in:
Robin Ward 2017-06-06 16:39:15 -04:00
parent 00f06b8086
commit 0de5d01d79

View File

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