mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: improper sourceContent in mocks
This commit is contained in:
@@ -103,7 +103,7 @@ Mocks.post = async (objects) => {
|
|||||||
url,
|
url,
|
||||||
attributedTo: uid,
|
attributedTo: uid,
|
||||||
inReplyTo: toPid,
|
inReplyTo: toPid,
|
||||||
published, updated, name, content, sourceContent,
|
published, updated, name, content, source,
|
||||||
to, cc, audience, attachment, tag,
|
to, cc, audience, attachment, tag,
|
||||||
// conversation, // mastodon-specific, ignored.
|
// conversation, // mastodon-specific, ignored.
|
||||||
} = object;
|
} = object;
|
||||||
@@ -125,7 +125,7 @@ Mocks.post = async (objects) => {
|
|||||||
// tid, --> purposely omitted
|
// tid, --> purposely omitted
|
||||||
name,
|
name,
|
||||||
content,
|
content,
|
||||||
sourceContent,
|
sourceContent: source.mediaType === 'text/markdown' ? source.content : undefined,
|
||||||
timestamp,
|
timestamp,
|
||||||
toPid,
|
toPid,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user