Fix multi-user timeline search parameters
This commit is contained in:
parent
83a32a67a5
commit
16f50621b5
|
@ -1,8 +1,8 @@
|
||||||
import httpclient, asyncdispatch, htmlparser
|
import httpclient, asyncdispatch, htmlparser
|
||||||
import sequtils, strutils, json, xmltree, uri
|
import strutils, json, xmltree, uri
|
||||||
|
|
||||||
import ".."/[types, parser, parserutils, formatters, query]
|
import ".."/[types, parser, parserutils, query]
|
||||||
import utils, consts, media, timeline
|
import utils, consts, timeline
|
||||||
|
|
||||||
proc getResult[T](json: JsonNode; query: Query; after: string): Result[T] =
|
proc getResult[T](json: JsonNode; query: Query; after: string): Result[T] =
|
||||||
Result[T](
|
Result[T](
|
||||||
|
|
|
@ -87,7 +87,7 @@ proc genQueryUrl*(query: Query; onlyParam=false): string =
|
||||||
if query.fromUser.len > 0:
|
if query.fromUser.len > 0:
|
||||||
result = "/" & query.fromUser.join(",")
|
result = "/" & query.fromUser.join(",")
|
||||||
|
|
||||||
if query.fromUser.len > 1:
|
if query.fromUser.len > 1 and query.kind == posts:
|
||||||
return result & "?"
|
return result & "?"
|
||||||
|
|
||||||
if query.kind notin {custom, users}:
|
if query.kind notin {custom, users}:
|
||||||
|
|
Loading…
Reference in New Issue