mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +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,
|
||||
tag,
|
||||
attachment,
|
||||
replies: replyCount > 0 ? `${id}/replies` : [],
|
||||
replies: replyCount > 0 ? `${id}/replies` : null,
|
||||
};
|
||||
|
||||
return object;
|
||||
|
||||
Reference in New Issue
Block a user