Node.js based forum software built for the modern web
fix: send explicitly empty array for attachment prop in mocks.note
Julian Lam4a8b06e81597
diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.jsindex 4105f8885e..2ae91dbf10 100644--- a/src/activitypub/mocks.js+++ b/src/activitypub/mocks.js@@ -239,6 +239,7 @@ Mocks.note = async (post) => {tag = tag || [];tag.push(...Array.from(matches).map(({ id: href, slug: name }) => {if (utils.isNumber(href)) { // local ref+ name = name.toLowerCase(); // local slugs are always lowercasehref = `${nconf.get('url')}/user/${name.slice(1)}`;name = `${name}@${nconf.get('url_parsed').hostname}`;}@@ -272,6 +273,7 @@ Mocks.note = async (post) => {mediaType: 'text/markdown',},tag,+ attachment: [], // todo... requires refactoring of link preview plugin// replies: {} todo...};