mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Onebox wasn't using correct uri
This commit is contained in:
parent
00f06b8086
commit
0de5d01d79
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue