mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +08:00
FIX: Onebox wasn't using correct uri
This commit is contained in:
parent
00f06b8086
commit
0de5d01d79
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user