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:
Julian Lam
2024-08-01 11:35:38 -04:00
parent e015339ccf
commit 9bd6896d13

View File

@@ -407,7 +407,7 @@ Mocks.note = async (post) => {
source,
tag,
attachment,
replies: replyCount > 0 ? `${id}/replies` : [],
replies: replyCount > 0 ? `${id}/replies` : null,
};
return object;