mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: bug where newly create cids were not responding via webfinger, 404 on webfinger errors, not 400
This commit is contained in:
@@ -92,6 +92,7 @@ module.exports = function (Categories) {
|
||||
['categories:cid', category.order, category.cid],
|
||||
[`cid:${parentCid}:children`, category.order, category.cid],
|
||||
['categories:name', 0, `${data.name.slice(0, 200).toLowerCase()}:${category.cid}`],
|
||||
['categoryhandle:cid', cid, handle],
|
||||
]);
|
||||
|
||||
await privileges.categories.give(result.defaultPrivileges, category.cid, ['registered-users', 'fediverse']);
|
||||
|
||||
@@ -40,7 +40,7 @@ Controller.webfinger = async (req, res) => {
|
||||
|
||||
res.status(200).json(response);
|
||||
} catch (e) {
|
||||
res.sendStatus(400);
|
||||
res.sendStatus(404);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user