mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: remove invalid/inaccessible object from parent traversal chain on get error
This commit is contained in:
@@ -122,6 +122,7 @@ Notes.getParentChain = async (uid, input) => {
|
||||
}
|
||||
} catch (e) {
|
||||
winston.warn(`[activitypub/notes/getParentChain] Cannot retrieve ${id}, terminating here.`);
|
||||
chain.delete(id);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user