Skip to content

Commit b114cad

Browse files
Merge pull request #1263 from MathMan05/patch-6
acatually fix the embed issue
2 parents 0fffa7f + 664b71f commit b114cad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/util/utility/EmbedHandlers.ts

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export const EmbedHandlers: {
196196
if (!metas.image) metas.image = metas.image_fallback;
197197

198198
if (metas.image && (!metas.width || !metas.height)) {
199+
metas.image = new URL(metas.image, url).toString();
199200
const result = await probe(metas.image);
200201
metas.width = result.width;
201202
metas.height = result.height;

0 commit comments

Comments
 (0)