Generate tweet links

This commit is contained in:
Zed
2019-07-01 23:14:36 +02:00
parent 04dbd07959
commit 9b07199901
5 changed files with 8 additions and 9 deletions

View File

@@ -42,7 +42,6 @@ proc parseTweetProfile*(profile: XmlNode): Profile =
proc parseQuote*(quote: XmlNode): Quote =
result = Quote(
id: quote.attr("data-item-id"),
link: quote.attr("href"),
text: getQuoteText(quote)
)
@@ -60,7 +59,6 @@ proc parseTweet*(node: XmlNode): Tweet =
result = Tweet(
id: tweet.attr("data-item-id"),
link: tweet.attr("data-permalink-path"),
text: getTweetText(tweet),
time: getTimestamp(tweet),
shortTime: getShortTime(tweet),