From 22b30655d19f2340226bc46296a0e8bdf096e7aa Mon Sep 17 00:00:00 2001 From: Moon Man Date: Sun, 31 Dec 2023 15:25:26 -0500 Subject: [PATCH] url to path --- src/activity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activity.ts b/src/activity.ts index 5737170..ba797c2 100644 --- a/src/activity.ts +++ b/src/activity.ts @@ -45,7 +45,7 @@ export const handleInboxPost = async (req: Request, res: Response) => { return; } else if (activity.type === "Like") { - const articleId = reverseRoute("object", req.url) + const articleId = reverseRoute("object", req.path); if (articleId) { const article = await getArticleById(parseInt(articleId));