Skip to content

Node.js based forum software built for the modern web

fix: note not federated out to mentioned users' inboxes

Julian Lam6423d514ff87
diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.js
index 2ae91dbf10..0cd37d97e0 100644
--- a/src/activitypub/mocks.js
+++ b/src/activitypub/mocks.js
@@ -250,6 +250,14 @@ Mocks.note = async (post) => {
name,
};
}));
+
+ to.push(...Array.from(matches).reduce((ids, { id }) => {
+ if (!utils.isNumber(id)) {
+ ids.push(id);
+ }
+
+ return ids;
+ }, []));
}
}