url to path
This commit is contained in:
parent
be3d555480
commit
22b30655d1
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue