mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-25 18:34:45 +00:00
acatually fix the embed issue
This one added the line in the right spot, sorry about the previous one lol
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user