mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Fix displaying urls in location fields
This commit is contained in:
parent
df943c09d9
commit
0582e2ea95
2 changed files with 4 additions and 1 deletions
|
|
@ -31,9 +31,11 @@ proc renderProfileCard*(profile: Profile; prefs: Prefs): VNode =
|
|||
if profile.location.len > 0:
|
||||
tdiv(class="profile-location"):
|
||||
span: icon "location"
|
||||
let (place, url) = profile.getLocation()
|
||||
let (place, url) = getLocation(profile)
|
||||
if url.len > 1:
|
||||
a(href=url): text place
|
||||
elif "://" in place:
|
||||
a(href=place): text place
|
||||
else:
|
||||
span: text place
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue