mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 21:40:23 +01:00
fix: additional logging for activities with no context property
This commit is contained in:
@@ -15,6 +15,10 @@ Contexts.get = async (uid, id) => {
|
||||
|
||||
try {
|
||||
({ context } = await activitypub.get('uid', uid, id));
|
||||
if (!context) {
|
||||
winston.verbose(`[activitypub/context] ${id} contains no context.`);
|
||||
return false;
|
||||
}
|
||||
({ type } = await activitypub.get('uid', uid, context));
|
||||
} catch (e) {
|
||||
winston.verbose(`[activitypub/context] ${id} context not resolvable.`);
|
||||
|
||||
Reference in New Issue
Block a user