mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: send join date in local actor mock
This commit is contained in:
@@ -149,7 +149,7 @@ Mocks.post = async (objects) => {
|
||||
Mocks.actors = {};
|
||||
|
||||
Mocks.actors.user = async (uid) => {
|
||||
let { username, userslug, displayname, fullname, aboutme, picture, 'cover:url': cover } = await user.getUserData(uid);
|
||||
let { username, userslug, displayname, fullname, joindate, aboutme, picture, 'cover:url': cover } = await user.getUserData(uid);
|
||||
const publicKey = await activitypub.getPublicKey('uid', uid);
|
||||
|
||||
if (picture) {
|
||||
@@ -188,6 +188,7 @@ Mocks.actors.user = async (uid) => {
|
||||
summary: aboutme,
|
||||
icon: picture,
|
||||
image: cover,
|
||||
published: new Date(joindate).toISOString(),
|
||||
|
||||
publicKey: {
|
||||
id: `${nconf.get('url')}/uid/${uid}#key`,
|
||||
|
||||
Reference in New Issue
Block a user