From b66d998d379e37a1f28f67215412bbea5fa45953 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 25 Jun 2024 11:29:20 -0400 Subject: [PATCH] fix: #12654, incorrect location of `sharedInbox` property --- src/activitypub/mocks.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.js index b08595255d..01fa9269f6 100644 --- a/src/activitypub/mocks.js +++ b/src/activitypub/mocks.js @@ -175,7 +175,6 @@ Mocks.actors.user = async (uid) => { following: `${nconf.get('url')}/uid/${uid}/following`, inbox: `${nconf.get('url')}/uid/${uid}/inbox`, outbox: `${nconf.get('url')}/uid/${uid}/outbox`, - sharedInbox: `${nconf.get('url')}/inbox`, type: 'Person', 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}`, publicKeyPem: publicKey, }, + + endpoints: { + sharedInbox: `${nconf.get('url')}/inbox`, + }, }; }; @@ -218,7 +221,6 @@ Mocks.actors.category = async (cid) => { // following: , inbox: `${nconf.get('url')}/category/${cid}/inbox`, outbox: `${nconf.get('url')}/category/${cid}/outbox`, - sharedInbox: `${nconf.get('url')}/inbox`, type: 'Group', name, @@ -231,6 +233,10 @@ Mocks.actors.category = async (cid) => { owner: `${nconf.get('url')}/category/${cid}`, publicKeyPem: publicKey, }, + + endpoints: { + sharedInbox: `${nconf.get('url')}/inbox`, + }, }; };