mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: better handle null return from notes.assert
This commit is contained in:
@@ -36,8 +36,10 @@ inbox.create = async (req) => {
|
|||||||
throw new Error('[[error:activitypub.not-implemented]]');
|
throw new Error('[[error:activitypub.not-implemented]]');
|
||||||
}
|
}
|
||||||
|
|
||||||
const { tid, count } = await activitypub.notes.assert(0, object);
|
const response = await activitypub.notes.assert(0, object);
|
||||||
winston.verbose(`[activitypub/inbox] Parsing ${count} notes into topic ${tid}`);
|
if (response) {
|
||||||
|
winston.verbose(`[activitypub/inbox] Parsing ${response.count} notes into topic ${response.tid}`);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
inbox.update = async (req) => {
|
inbox.update = async (req) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user