url to path

This commit is contained in:
Moon Man 2023-12-31 15:25:26 -05:00
parent be3d555480
commit 22b30655d1
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ export const handleInboxPost = async (req: Request, res: Response) => {
return; return;
} }
else if (activity.type === "Like") { else if (activity.type === "Like") {
const articleId = reverseRoute("object", req.url) const articleId = reverseRoute("object", req.path);
if (articleId) { if (articleId) {
const article = await getArticleById(parseInt(articleId)); const article = await getArticleById(parseInt(articleId));