1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-01-28 22:32:48 -05:00

Show Twitter link on search pages

This commit is contained in:
Zed
2019-10-08 15:07:10 +02:00
parent e090dde1ea
commit 381a8a106c
3 changed files with 33 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ proc cleanPos*(pos: string): string =
pos.multiReplace((posPrefix, ""), (posSuffix, ""))
proc genPos*(pos: string): string =
if pos.len == 0: return
if pos.len == 0 or pos == "0": return pos
result = posPrefix & pos
if "A==" notin result:
result &= posSuffix