fix: improper sourceContent in mocks

This commit is contained in:
Julian Lam
2024-06-28 11:47:18 -04:00
parent 19908038c5
commit 615aaa01d6

View File

@@ -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,