parent
3c16c0e5e6
commit
f156586508
|
@ -29,12 +29,12 @@ export default async function actor(router: Router) {
|
|||
};
|
||||
|
||||
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.json(actorObj);
|
||||
res.end();
|
||||
} else {
|
||||
res.redirect("/");
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue