fix: handle errors from Iframely
This commit is contained in:
@@ -63,6 +63,9 @@ router.post(
|
||||
}
|
||||
|
||||
const data = await Iframely.unfurl(url);
|
||||
if (data.error) {
|
||||
ctx.response.status = data.status;
|
||||
}
|
||||
ctx.body = presentUnfurl(data);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user