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

@@ -94,3 +94,6 @@ proc pageTitle*(page: string): string =
proc getTime*(tweet: Tweet): string =
tweet.time.format("d/M/yyyy', ' HH:mm:ss")
proc getLink*(tweet: Tweet | Quote): string =
&"{tweet.profile.username}/status/{tweet.id}"