fix: just return 204

This commit is contained in:
Apoorv Mishra
2023-07-25 08:46:45 +05:30
parent bd0240b7a5
commit 9ac1e13227
2 changed files with 4 additions and 3 deletions

View File

@@ -64,7 +64,8 @@ router.post(
const data = await Iframely.unfurl(url);
if (data.error) {
ctx.response.status = data.status;
ctx.response.status = 204;
return;
}
ctx.body = presentUnfurl(data);
}