Fix "more replies" link for unavailable tweets

This commit is contained in:
Zed
2019-09-24 16:01:09 +02:00
parent 7915616e2e
commit 7e713e8fa5
2 changed files with 8 additions and 2 deletions

View File

@@ -131,6 +131,7 @@ proc getRfc822Time*(tweet: Tweet): string =
tweet.time.format("ddd', 'd MMM yyyy HH:mm:ss 'GMT'")
proc getLink*(tweet: Tweet | Quote): string =
if tweet.id.len == 0: return
&"/{tweet.profile.username}/status/{tweet.id}"
proc getTombstone*(text: string): string =