fix: remove invalid/inaccessible object from parent traversal chain on get error

This commit is contained in:
Julian Lam
2024-02-12 15:05:18 -05:00
parent 609a9a37e5
commit 672a907d54

View File

@@ -122,6 +122,7 @@ Notes.getParentChain = async (uid, input) => {
}
} catch (e) {
winston.warn(`[activitypub/notes/getParentChain] Cannot retrieve ${id}, terminating here.`);
chain.delete(id);
}
}
};