Skip to content

Commit e608bff

Browse files
authored
fix: replies tweets list on status api (#12)
2 parents 228b731 + eb78f64 commit e608bff

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/jsons/status.nim

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,8 @@ proc formatConversationAsJson*(conv: Conversation): JsonNode =
2424

2525
# Format reply chains
2626
for chain in conv.replies.content:
27-
var tweets = newJArray()
2827
for tweet in chain.content:
29-
tweets.add(formatTweetAsJson(tweet))
30-
replies.add(%*{
31-
"tweets": tweets,
32-
"hasMore": chain.hasMore,
33-
"cursor": chain.cursor
34-
})
28+
replies.add(formatTweetAsJson(tweet))
3529

3630
return %*{
3731
"tweet": formatTweetAsJson(conv.tweet),

0 commit comments

Comments
 (0)