fix: broken tests

This commit is contained in:
Julian Lam
2025-01-06 16:54:23 -05:00
parent 0ad8ed9d4e
commit 9c78255e36
4 changed files with 6 additions and 2 deletions

View File

@@ -395,6 +395,8 @@ UserObjectFull:
type: number
uploaded:
type: number
shares:
type: number
isBlocked:
type: boolean
blocksCount:
@@ -434,6 +436,8 @@ UserObjectFull:
type: boolean
isFollowing:
type: boolean
isFollowPending:
type: boolean
canChat:
type: boolean
hasPrivateChat:

View File

@@ -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":

View File

@@ -85,7 +85,6 @@ inbox.add = async (req) => {
// Check context of OP
const 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) {

View File

@@ -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;
};