mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: send back correct actor id on webfinger calls
This commit is contained in:
@@ -96,8 +96,7 @@ Controller.postInbox = async (req, res) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
console.log('Unhandled Activity!!!');
|
res.sendStatus(501);
|
||||||
console.log(req.body);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ Controller.webfinger = async (req, res) => {
|
|||||||
{
|
{
|
||||||
rel: 'self',
|
rel: 'self',
|
||||||
type: 'application/activity+json',
|
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',
|
rel: 'http://webfinger.net/rel/profile-page',
|
||||||
|
|||||||
Reference in New Issue
Block a user