diff --git a/src/api/search.nim b/src/api/search.nim index a9283c8..979ca25 100644 --- a/src/api/search.nim +++ b/src/api/search.nim @@ -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]( diff --git a/src/query.nim b/src/query.nim index 0bb641e..80a7799 100644 --- a/src/query.nim +++ b/src/query.nim @@ -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}: