mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Fix invalid search link formatting
This commit is contained in:
parent
1c06a67afd
commit
dcec1eb458
5 changed files with 7 additions and 7 deletions
|
|
@ -199,7 +199,7 @@ proc getTwitterLink*(path: string; params: Table[string, string]): string =
|
|||
proc getLocation*(u: User | 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: ""
|
||||
let url = if loc.len > 1: "/search?f=tweets&q=place:" & loc[1] else: ""
|
||||
(loc[0], url)
|
||||
|
||||
proc getSuspended*(username: string): string =
|
||||
|
|
|
|||
Loading…
Reference in a new issue