mirror of
https://github.com/discourse/discourse.git
synced 2025-02-14 07:14:55 +00:00
FIX: Onebox wasn't using correct uri
This commit is contained in:
parent
075d0ecacc
commit
28b241295d
@ -155,7 +155,7 @@ module Oneboxer
|
|||||||
|
|
||||||
options[:cookie] = fd.cookie if fd.cookie
|
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 }
|
{ onebox: r.to_s, preview: r.try(:placeholder_html).to_s }
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
|
Loading…
x
Reference in New Issue
Block a user