Merge branch 'spacebarchat:master' into master
This commit is contained in:
commit
7320aa4529
@ -196,6 +196,7 @@ export const EmbedHandlers: {
|
|||||||
if (!metas.image) metas.image = metas.image_fallback;
|
if (!metas.image) metas.image = metas.image_fallback;
|
||||||
|
|
||||||
if (metas.image && (!metas.width || !metas.height)) {
|
if (metas.image && (!metas.width || !metas.height)) {
|
||||||
|
metas.image = new URL(metas.image, url).toString();
|
||||||
const result = await probe(metas.image);
|
const result = await probe(metas.image);
|
||||||
metas.width = result.width;
|
metas.width = result.width;
|
||||||
metas.height = result.height;
|
metas.height = result.height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user