From 8f8688513204a0538929992e358fea50cfc3add1 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Tue, 1 Dec 2020 08:58:42 +0000 Subject: [PATCH] Fixed typo in v2 oembed API - canary uses `maxwidth` and it's the correct parameter to use --- core/server/api/v2/oembed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/api/v2/oembed.js b/core/server/api/v2/oembed.js index cfa2007978..b6f202a9cf 100644 --- a/core/server/api/v2/oembed.js +++ b/core/server/api/v2/oembed.js @@ -39,7 +39,7 @@ function unknownProvider(url) { } function knownProvider(url) { - return extract(url, {maxwith: 1280}).catch((err) => { + return extract(url, {maxwidth: 1280}).catch((err) => { return Promise.reject(new errors.InternalServerError({ message: err.message }));