mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 15:19:32 +00:00
Generate tweet links
This commit is contained in:
parent
04dbd07959
commit
9b07199901
5 changed files with 8 additions and 9 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue