mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +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 = {};
|
||||||
|
|
||||||
Mocks.actors.user = async (uid) => {
|
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);
|
const publicKey = await activitypub.getPublicKey('uid', uid);
|
||||||
|
|
||||||
if (picture) {
|
if (picture) {
|
||||||
@@ -188,6 +188,7 @@ Mocks.actors.user = async (uid) => {
|
|||||||
summary: aboutme,
|
summary: aboutme,
|
||||||
icon: picture,
|
icon: picture,
|
||||||
image: cover,
|
image: cover,
|
||||||
|
published: new Date(joindate).toISOString(),
|
||||||
|
|
||||||
publicKey: {
|
publicKey: {
|
||||||
id: `${nconf.get('url')}/uid/${uid}#key`,
|
id: `${nconf.get('url')}/uid/${uid}#key`,
|
||||||
|
|||||||
Reference in New Issue
Block a user