Merge pull request #1263 from MathMan05/patch-6

acatually fix the embed issue
This commit is contained in:
Madeline 2025-03-24 15:33:09 +11:00 committed by GitHub
commit b114cad9ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -196,6 +196,7 @@ export const EmbedHandlers: {
if (!metas.image) metas.image = metas.image_fallback;
if (metas.image && (!metas.width || !metas.height)) {
metas.image = new URL(metas.image, url).toString();
const result = await probe(metas.image);
metas.width = result.width;
metas.height = result.height;