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;
|
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));
|
||||||
|
|
Loading…
Reference in New Issue