Implement getSource proc
This commit is contained in:
parent
baf5bf89e7
commit
ce5cbaeb87
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ proc parseTweet(js: JsonNode): Tweet =
|
||||||
replyId: js{"in_reply_to_status_id_str"}.getId,
|
replyId: js{"in_reply_to_status_id_str"}.getId,
|
||||||
text: js{"full_text"}.getStr,
|
text: js{"full_text"}.getStr,
|
||||||
time: js{"created_at"}.getTime,
|
time: js{"created_at"}.getTime,
|
||||||
source: js{"source"}.getStr.split(">")[1].split("<")[0],
|
source: getSource(js),
|
||||||
hasThread: js{"self_thread"}.notNull,
|
hasThread: js{"self_thread"}.notNull,
|
||||||
available: true,
|
available: true,
|
||||||
user: User(id: js{"user_id_str"}.getStr),
|
user: User(id: js{"user_id_str"}.getStr),
|
||||||
|
|
Loading…
Reference in a new issue