mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Minor code improvements
This commit is contained in:
parent
eed4d4033f
commit
d96550fcce
5 changed files with 17 additions and 12 deletions
|
|
@ -31,7 +31,7 @@ proc linkUser*(profile: Profile, class=""): VNode =
|
|||
icon "lock", title="Protected account"
|
||||
|
||||
proc linkText*(text: string; class=""): VNode =
|
||||
let url = if "http" notin text: "http://" & text else: text
|
||||
let url = if "http" notin text: https & text else: text
|
||||
buildHtml():
|
||||
a(href=url, class=class): text text
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue