fix: notes.assertPrivate sanity checks

This commit is contained in:
Julian Lam
2025-02-18 10:12:22 -05:00
parent b0e8058f58
commit 5e71d597a4

View File

@@ -229,6 +229,10 @@ Notes.assertPrivate = async (object) => {
// Given an object, adds it to an existing chat or creates a new chat otherwise
// todo: context stuff
if (!object || !object.id || !activitypub.helpers.isUri(object.id)) {
return null;
}
const localUids = [];
const recipients = new Set([...object.to, ...object.cc]);
await Promise.all(Array.from(recipients).map(async (value) => {