Node.js based forum software built for the modern web
fix: broken tests
Julian Lam9c78255e3685
diff --git a/public/openapi/components/schemas/UserObject.yaml b/public/openapi/components/schemas/UserObject.yamlindex 94db7a08b0..5dc0da6bf4 100644--- a/public/openapi/components/schemas/UserObject.yaml+++ b/public/openapi/components/schemas/UserObject.yaml@@ -395,6 +395,8 @@ UserObjectFull:type: numberuploaded:type: number+ shares:+ type: numberisBlocked:type: booleanblocksCount:@@ -434,6 +436,8 @@ UserObjectFull:type: booleanisFollowing:type: boolean+ isFollowPending:+ type: booleancanChat:type: booleanhasPrivateChat:diff --git a/public/openapi/read.yaml b/public/openapi/read.yamlindex 14ed40e1d4..42fdcc4a61 100644--- a/public/openapi/read.yaml+++ b/public/openapi/read.yaml@@ -298,6 +298,8 @@ paths:$ref: 'read/user/userslug/posts.yaml'"/api/user/{userslug}/topics":$ref: 'read/user/userslug/topics.yaml'+ "/api/user/{userslug}/shares":+ $ref: 'read/user/userslug/shares.yaml'"/api/user/{userslug}/best":$ref: 'read/user/userslug/best.yaml'"/api/user/{userslug}/controversial":diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.jsindex 66bd9ab2c7..2887caac04 100644--- a/src/activitypub/inbox.js+++ b/src/activitypub/inbox.js@@ -85,7 +85,6 @@ inbox.add = async (req) => {// Check context of OPconst tid = await posts.getPostField(pid, 'tid');const context = await topics.getTopicField(tid, 'context');- console.log(context);if (context) {const { attributedTo } = await activitypub.get('uid', 0, context);if (context === target && attributedTo === actor) {diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.jsindex fbe6772e11..e2ea398731 100644--- a/src/activitypub/mocks.js+++ b/src/activitypub/mocks.js@@ -566,7 +566,6 @@ Mocks.notes.public = async (post) => {};({ object } = await plugins.hooks.fire('filter:activitypub.mocks.note', { object, post, private: false }));- console.log(object);return object;};