mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
parent
dfce77ee98
commit
043f47b11a
4 changed files with 16 additions and 2 deletions
|
|
@ -130,6 +130,9 @@ proc getTime*(tweet: Tweet): string =
|
|||
proc getRfc822Time*(tweet: Tweet): string =
|
||||
tweet.time.format("ddd', 'd MMM yyyy HH:mm:ss 'GMT'")
|
||||
|
||||
proc getTweetTime*(tweet: Tweet): string =
|
||||
tweet.time.format("h:mm tt' · 'MMM d', 'YYYY")
|
||||
|
||||
proc getLink*(tweet: Tweet | Quote): string =
|
||||
if tweet.id.len == 0: return
|
||||
&"/{tweet.profile.username}/status/{tweet.id}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue