mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: broken tests
This commit is contained in:
@@ -395,6 +395,8 @@ UserObjectFull:
|
|||||||
type: number
|
type: number
|
||||||
uploaded:
|
uploaded:
|
||||||
type: number
|
type: number
|
||||||
|
shares:
|
||||||
|
type: number
|
||||||
isBlocked:
|
isBlocked:
|
||||||
type: boolean
|
type: boolean
|
||||||
blocksCount:
|
blocksCount:
|
||||||
@@ -434,6 +436,8 @@ UserObjectFull:
|
|||||||
type: boolean
|
type: boolean
|
||||||
isFollowing:
|
isFollowing:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
isFollowPending:
|
||||||
|
type: boolean
|
||||||
canChat:
|
canChat:
|
||||||
type: boolean
|
type: boolean
|
||||||
hasPrivateChat:
|
hasPrivateChat:
|
||||||
|
|||||||
@@ -298,6 +298,8 @@ paths:
|
|||||||
$ref: 'read/user/userslug/posts.yaml'
|
$ref: 'read/user/userslug/posts.yaml'
|
||||||
"/api/user/{userslug}/topics":
|
"/api/user/{userslug}/topics":
|
||||||
$ref: 'read/user/userslug/topics.yaml'
|
$ref: 'read/user/userslug/topics.yaml'
|
||||||
|
"/api/user/{userslug}/shares":
|
||||||
|
$ref: 'read/user/userslug/shares.yaml'
|
||||||
"/api/user/{userslug}/best":
|
"/api/user/{userslug}/best":
|
||||||
$ref: 'read/user/userslug/best.yaml'
|
$ref: 'read/user/userslug/best.yaml'
|
||||||
"/api/user/{userslug}/controversial":
|
"/api/user/{userslug}/controversial":
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ inbox.add = async (req) => {
|
|||||||
// Check context of OP
|
// Check context of OP
|
||||||
const tid = await posts.getPostField(pid, 'tid');
|
const tid = await posts.getPostField(pid, 'tid');
|
||||||
const context = await topics.getTopicField(tid, 'context');
|
const context = await topics.getTopicField(tid, 'context');
|
||||||
console.log(context);
|
|
||||||
if (context) {
|
if (context) {
|
||||||
const { attributedTo } = await activitypub.get('uid', 0, context);
|
const { attributedTo } = await activitypub.get('uid', 0, context);
|
||||||
if (context === target && attributedTo === actor) {
|
if (context === target && attributedTo === actor) {
|
||||||
|
|||||||
@@ -566,7 +566,6 @@ Mocks.notes.public = async (post) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
({ object } = await plugins.hooks.fire('filter:activitypub.mocks.note', { object, post, private: false }));
|
({ object } = await plugins.hooks.fire('filter:activitypub.mocks.note', { object, post, private: false }));
|
||||||
console.log(object);
|
|
||||||
return object;
|
return object;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user