1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-04-14 09:42:12 -04:00

Fix invalid search link formatting

This commit is contained in:
Zed
2026-02-10 22:53:54 +01:00
parent 1c06a67afd
commit dcec1eb458
5 changed files with 7 additions and 7 deletions

View File

@@ -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 =