mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: send null instead of empty array in replies property if mocked note has no replies
re: mastodon/mastodon#31230
This commit is contained in:
@@ -407,7 +407,7 @@ Mocks.note = async (post) => {
|
|||||||
source,
|
source,
|
||||||
tag,
|
tag,
|
||||||
attachment,
|
attachment,
|
||||||
replies: replyCount > 0 ? `${id}/replies` : [],
|
replies: replyCount > 0 ? `${id}/replies` : null,
|
||||||
};
|
};
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
|
|||||||
Reference in New Issue
Block a user