Skip to content

Node.js based forum software built for the modern web

fix: #12654, incorrect location of `sharedInbox` property

Julian Lamb66d998d379e
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`,
+ },
};
};