mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
fix: better handling of missing of invalid to, cc, timestamp values
This commit is contained in:
@@ -59,7 +59,7 @@ Notes.assert = async (uid, input, options = {}) => {
|
||||
};
|
||||
|
||||
Notes.updateLocalRecipients = async (id, { to, cc }) => {
|
||||
const recipients = new Set([...to, ...cc]);
|
||||
const recipients = new Set([...(to || []), ...(cc || [])]);
|
||||
const uids = new Set();
|
||||
await Promise.all(Array.from(recipients).map(async (recipient) => {
|
||||
const { type, id } = await activitypub.helpers.resolveLocalId(recipient);
|
||||
|
||||
Reference in New Issue
Block a user