mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
Add new max_width feature for oneboxes. Allows vimeo oneboxes to not
look like total garbage.
This commit is contained in:
+1
-1
@@ -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