mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-16 11:37:37 +01:00
(fix) fixed typos in activitypub urls (#13610)
This commit is contained in:
@@ -172,7 +172,7 @@ categoryController.get = async function (req, res, next) {
|
|||||||
|
|
||||||
if (meta.config.activitypubEnabled) {
|
if (meta.config.activitypubEnabled) {
|
||||||
// Include link header for richer parsing
|
// Include link header for richer parsing
|
||||||
res.set('Link', `<${nconf.get('url')}/actegory/${cid}>; rel="alternate"; type="application/activity+json"`);
|
res.set('Link', `<${nconf.get('url')}/category/${cid}>; rel="alternate"; type="application/activity+json"`);
|
||||||
|
|
||||||
// Category accessible
|
// Category accessible
|
||||||
const remoteOk = await privileges.categories.can('read', cid, activitypub._constants.uid);
|
const remoteOk = await privileges.categories.can('read', cid, activitypub._constants.uid);
|
||||||
@@ -259,7 +259,7 @@ function addTags(categoryData, res, currentPage) {
|
|||||||
res.locals.linkTags.push({
|
res.locals.linkTags.push({
|
||||||
rel: 'alternate',
|
rel: 'alternate',
|
||||||
type: 'application/activity+json',
|
type: 'application/activity+json',
|
||||||
href: `${nconf.get('url')}/actegory/${categoryData.cid}`,
|
href: `${nconf.get('url')}/category/${categoryData.cid}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user