Skip to content

Node.js based forum software built for the modern web

fix: send back correct actor id on webfinger calls

Julian Lam25434d2a6e75
diff --git a/src/controllers/activitypub/index.js b/src/controllers/activitypub/index.js
index cc28d40159..8db726a2cf 100644
--- a/src/controllers/activitypub/index.js
+++ b/src/controllers/activitypub/index.js
@@ -96,8 +96,7 @@ Controller.postInbox = async (req, res) => {
}
default: {
- console.log('Unhandled Activity!!!');
- console.log(req.body);
+ res.sendStatus(501);
}
}
diff --git a/src/controllers/well-known.js b/src/controllers/well-known.js
index e2f332de8f..2f4698613f 100644
--- a/src/controllers/well-known.js
+++ b/src/controllers/well-known.js
@@ -44,7 +44,7 @@ Controller.webfinger = async (req, res) => {
{
rel: 'self',
type: 'application/activity+json',
- href: `${nconf.get('url')}/user/${slug}`, // actor
+ href: `${nconf.get('url')}/uid/${uid}`, // actor
},
{
rel: 'http://webfinger.net/rel/profile-page',