mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat(activitypub): show world category in selectors
Allows for posting to World, showing World in unread/recent/etc also removes now-unnecessary special case for privileges
This commit is contained in:
@@ -31,6 +31,10 @@ searchApi.categories = async (caller, data) => {
|
||||
cids = await loadCids(caller.uid, data.parentCid);
|
||||
}
|
||||
|
||||
if (meta.config.activitypubEnabled) {
|
||||
cids.unshift(-1);
|
||||
}
|
||||
|
||||
const visibleCategories = await controllersHelpers.getVisibleCategories({
|
||||
cids, uid: caller.uid, states: data.states, privilege, showLinks: data.showLinks, parentCid: data.parentCid,
|
||||
});
|
||||
|
||||
@@ -25,12 +25,6 @@ privilegesController.get = async function (req, res) {
|
||||
cid: 'admin',
|
||||
name: '[[admin/manage/privileges:admin]]',
|
||||
icon: 'fa-lock',
|
||||
}, {
|
||||
cid: -1,
|
||||
name: '[[activitypub:category.name]]',
|
||||
icon: 'fa-globe',
|
||||
bgColor: '#0000ff',
|
||||
color: '#ffffff',
|
||||
}];
|
||||
|
||||
let selectedCategory;
|
||||
|
||||
Reference in New Issue
Block a user