Node.js based forum software built for the modern web
fix: notes.assertPrivate sanity checks
Julian Lam5e71d597a47c
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.jsindex 03cca7d9d8..f40d4bdb68 100644--- a/src/activitypub/notes.js+++ b/src/activitypub/notes.js@@ -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) => {