mirror of https://github.com/zedeus/nitter
fix(nitter): keep query from user search in result. remove personal mods
This commit is contained in:
parent
94bf4fe6b9
commit
55b6ed4bbd
|
@ -12,3 +12,4 @@ nitter
|
|||
nitter.conf
|
||||
guest_accounts.json*
|
||||
dump.rdb
|
||||
./
|
|
@ -134,6 +134,7 @@ proc getGraphUserSearch*(query: Query; after=""): Future[Result[User]] {.async.}
|
|||
|
||||
let url = graphSearchTimeline ? {"variables": $variables, "features": gqlFeatures}
|
||||
result = parseGraphSearch[User](await fetch(url, Api.search), after)
|
||||
result.query = query
|
||||
|
||||
proc getPhotoRail*(name: string): Future[PhotoRail] {.async.} =
|
||||
if name.len == 0: return
|
||||
|
|
|
@ -34,7 +34,7 @@ const
|
|||
"include_user_entities": "1",
|
||||
"include_ext_reply_count": "1",
|
||||
"include_ext_is_blue_verified": "1",
|
||||
"include_ext_verified_type": "1",
|
||||
# "include_ext_verified_type": "1",
|
||||
"include_ext_media_color": "0",
|
||||
"cards_platform": "Web-13",
|
||||
"tweet_mode": "extended",
|
||||
|
|
|
@ -3,7 +3,6 @@ import asyncdispatch, strformat, logging
|
|||
from net import Port
|
||||
from htmlgen import a
|
||||
from os import getEnv
|
||||
from json import parseJson
|
||||
|
||||
import jester
|
||||
|
||||
|
|
|
@ -11,12 +11,6 @@ include "../views/opensearch.nimf"
|
|||
|
||||
export search
|
||||
|
||||
import jsony, times
|
||||
export jsony
|
||||
|
||||
proc dumpHook*(s: var string, v: DateTime) =
|
||||
s.add $v.toTime().toUnix()
|
||||
|
||||
proc createSearchRouter*(cfg: Config) =
|
||||
router search:
|
||||
get "/search/?":
|
||||
|
|
|
@ -12,12 +12,6 @@ export router_utils
|
|||
export redis_cache, formatters, query, api
|
||||
export profile, timeline, status
|
||||
|
||||
import jsony, times
|
||||
export jsony
|
||||
|
||||
proc dumpHook*(s: var string, v: DateTime) =
|
||||
s.add $v.toTime().toUnix()
|
||||
|
||||
proc getQuery*(request: Request; tab, name: string): Query =
|
||||
case tab
|
||||
of "with_replies": getReplyQuery(name)
|
||||
|
|
Loading…
Reference in New Issue