Implement getSource proc

This commit is contained in:
Curtis 2022-02-26 19:02:34 -05:00
parent baf5bf89e7
commit ce5cbaeb87
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ proc parseTweet(js: JsonNode): Tweet =
replyId: js{"in_reply_to_status_id_str"}.getId,
text: js{"full_text"}.getStr,
time: js{"created_at"}.getTime,
source: js{"source"}.getStr.split(">")[1].split("<")[0],
source: getSource(js),
hasThread: js{"self_thread"}.notNull,
available: true,
user: User(id: js{"user_id_str"}.getStr),