fix: #12654, incorrect location of sharedInbox property

This commit is contained in:
Julian Lam
2024-06-25 11:29:20 -04:00
parent a371c9fceb
commit b66d998d37

View File

@@ -175,7 +175,6 @@ Mocks.actors.user = async (uid) => {
following: `${nconf.get('url')}/uid/${uid}/following`, following: `${nconf.get('url')}/uid/${uid}/following`,
inbox: `${nconf.get('url')}/uid/${uid}/inbox`, inbox: `${nconf.get('url')}/uid/${uid}/inbox`,
outbox: `${nconf.get('url')}/uid/${uid}/outbox`, outbox: `${nconf.get('url')}/uid/${uid}/outbox`,
sharedInbox: `${nconf.get('url')}/inbox`,
type: 'Person', type: 'Person',
name: username !== displayname ? fullname : username, // displayname is escaped, fullname is not name: username !== displayname ? fullname : username, // displayname is escaped, fullname is not
@@ -189,6 +188,10 @@ Mocks.actors.user = async (uid) => {
owner: `${nconf.get('url')}/uid/${uid}`, owner: `${nconf.get('url')}/uid/${uid}`,
publicKeyPem: publicKey, publicKeyPem: publicKey,
}, },
endpoints: {
sharedInbox: `${nconf.get('url')}/inbox`,
},
}; };
}; };
@@ -218,7 +221,6 @@ Mocks.actors.category = async (cid) => {
// following: , // following: ,
inbox: `${nconf.get('url')}/category/${cid}/inbox`, inbox: `${nconf.get('url')}/category/${cid}/inbox`,
outbox: `${nconf.get('url')}/category/${cid}/outbox`, outbox: `${nconf.get('url')}/category/${cid}/outbox`,
sharedInbox: `${nconf.get('url')}/inbox`,
type: 'Group', type: 'Group',
name, name,
@@ -231,6 +233,10 @@ Mocks.actors.category = async (cid) => {
owner: `${nconf.get('url')}/category/${cid}`, owner: `${nconf.get('url')}/category/${cid}`,
publicKeyPem: publicKey, publicKeyPem: publicKey,
}, },
endpoints: {
sharedInbox: `${nconf.get('url')}/inbox`,
},
}; };
}; };