From 16f50621b5a5882988bed8414add3741bffaf072 Mon Sep 17 00:00:00 2001 From: Zed Date: Fri, 20 Sep 2019 04:04:28 +0200 Subject: [PATCH] Fix multi-user timeline search parameters --- src/api/search.nim | 6 +++--- src/query.nim | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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}: