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