mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
Add new max_width
feature for oneboxes. Allows vimeo oneboxes to not
look like total garbage.
This commit is contained in:
@ -122,7 +122,7 @@ module Oneboxer
|
||||
# This might be able to move to whenever the SiteSetting changes?
|
||||
Oneboxer.add_discourse_whitelists
|
||||
|
||||
r = Onebox.preview(url, cache: {})
|
||||
r = Onebox.preview(url, cache: {}, max_width: 695)
|
||||
{
|
||||
onebox: r.to_s,
|
||||
preview: r.try(:placeholder_html).to_s
|
||||
|
Reference in New Issue
Block a user