fix: presentUnfurl

This commit is contained in:
Apoorv Mishra
2023-07-23 20:39:16 +05:30
parent 8b3c58a162
commit a30487c2d7
3 changed files with 20 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ import validate from "@server/middlewares/validate";
import { Document, User } from "@server/models";
import { authorize } from "@server/policies";
import { presentDocument, presentMention } from "@server/presenters/unfurls";
import presentUnfurl from "@server/presenters/unfurls/unfurl";
import { APIContext } from "@server/types";
import { RateLimiterStrategy } from "@server/utils/RateLimiter";
import { Iframely } from "@server/utils/unfurl";
@@ -62,7 +63,7 @@ router.post(
}
const data = await Iframely.unfurl(url);
ctx.body = data;
ctx.body = presentUnfurl(data);
}
);