Преглед изворни кода

Fix multi-user timeline search parameters

Zed пре 7 година
родитељ
комит
16f50621b5
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 3 3
      src/api/search.nim
  2. 1 1
      src/query.nim

+ 3 - 3
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](

+ 1 - 1
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}: