From 615aaa01d654e265c32fd34d4040b8e9097f4b7c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 28 Jun 2024 11:47:18 -0400 Subject: [PATCH] fix: improper sourceContent in mocks --- src/activitypub/mocks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.js index 01fa9269f6..1dfb65e20f 100644 --- a/src/activitypub/mocks.js +++ b/src/activitypub/mocks.js @@ -103,7 +103,7 @@ Mocks.post = async (objects) => { url, attributedTo: uid, inReplyTo: toPid, - published, updated, name, content, sourceContent, + published, updated, name, content, source, to, cc, audience, attachment, tag, // conversation, // mastodon-specific, ignored. } = object; @@ -125,7 +125,7 @@ Mocks.post = async (objects) => { // tid, --> purposely omitted name, content, - sourceContent, + sourceContent: source.mediaType === 'text/markdown' ? source.content : undefined, timestamp, toPid,