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
|
|
@ -117,6 +117,7 @@ proc getTwitterLink*(path: string; params: Table[string, string]): string =
|
|||
result = result.replace("/" & username, "")
|
||||
|
||||
proc getLocation*(u: Profile | Tweet): (string, string) =
|
||||
if "://" in u.location: return (u.location, "")
|
||||
let loc = u.location.split(":")
|
||||
let url = if loc.len > 1: "/search?q=place:" & loc[1] else: ""
|
||||
(loc[0], url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue