mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-27 17:11:14 +01:00
fix: send handle as category actor's preferredUsername, #12434
This commit is contained in:
@@ -170,7 +170,10 @@ Mocks.actors.user = async (uid) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Mocks.actors.category = async (cid) => {
|
Mocks.actors.category = async (cid) => {
|
||||||
let { name, slug, description: summary, backgroundImage } = await categories.getCategoryData(cid);
|
let {
|
||||||
|
name, handle: preferredUsername, slug,
|
||||||
|
description: summary, backgroundImage,
|
||||||
|
} = await categories.getCategoryData(cid);
|
||||||
const publicKey = await activitypub.getPublicKey('cid', cid);
|
const publicKey = await activitypub.getPublicKey('cid', cid);
|
||||||
|
|
||||||
backgroundImage = backgroundImage || meta.config['brand:logo'] || `${nconf.get('relative_path')}/assets/logo.png`;
|
backgroundImage = backgroundImage || meta.config['brand:logo'] || `${nconf.get('relative_path')}/assets/logo.png`;
|
||||||
@@ -193,7 +196,7 @@ Mocks.actors.category = async (cid) => {
|
|||||||
|
|
||||||
type: 'Group',
|
type: 'Group',
|
||||||
name,
|
name,
|
||||||
preferredUsername: `cid.${cid}`,
|
preferredUsername,
|
||||||
summary,
|
summary,
|
||||||
icon: backgroundImage,
|
icon: backgroundImage,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user