mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 22:04:58 +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
|
||||
|
||||
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…
x
Reference in New Issue
Block a user