forked from shadowfacts/shadowfacts.net
parent
3c16c0e5e6
commit
f156586508
|
@ -29,12 +29,12 @@ export default async function actor(router: Router) {
|
||||||
};
|
};
|
||||||
|
|
||||||
router.get("/ap/actor", (req, res) => {
|
router.get("/ap/actor", (req, res) => {
|
||||||
if (req.accepts("application/activity+json")) {
|
if (req.accepts("text/html")) {
|
||||||
|
res.redirect("/");
|
||||||
|
} else {
|
||||||
res.type("application/activity+json");
|
res.type("application/activity+json");
|
||||||
res.json(actorObj);
|
res.json(actorObj);
|
||||||
res.end();
|
res.end();
|
||||||
} else {
|
|
||||||
res.redirect("/");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue