Show reasons for tweets being withheld

Fixes #33
This commit is contained in:
Zed
2019-09-08 14:34:26 +02:00
parent 8208676e6e
commit 9ff3ba2005
5 changed files with 30 additions and 7 deletions

View File

@@ -107,3 +107,6 @@ proc getTime*(tweet: Tweet): string =
proc getLink*(tweet: Tweet | Quote): string =
&"/{tweet.profile.username}/status/{tweet.id}"
proc getTombstone*(text: string): string =
text.replace(re"\n* *Learn more", "").stripText().strip(chars={' ', '\n'})