mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fix: crash due to missing param when calling getCustomUserFields
This commit is contained in:
@@ -213,7 +213,7 @@ Mocks.actors = {};
|
|||||||
Mocks.actors.user = async (uid) => {
|
Mocks.actors.user = async (uid) => {
|
||||||
const userData = await user.getUserData(uid);
|
const userData = await user.getUserData(uid);
|
||||||
let { username, userslug, displayname, fullname, joindate, aboutme, picture, 'cover:url': cover } = userData;
|
let { username, userslug, displayname, fullname, joindate, aboutme, picture, 'cover:url': cover } = userData;
|
||||||
let fields = await accountHelpers.getCustomUserFields(userData);
|
let fields = await accountHelpers.getCustomUserFields(0, userData);
|
||||||
const publicKey = await activitypub.getPublicKey('uid', uid);
|
const publicKey = await activitypub.getPublicKey('uid', uid);
|
||||||
|
|
||||||
let aboutmeParsed = '';
|
let aboutmeParsed = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user