Skip to content

Commit

Permalink
Fix search queries in user search RSS feeds (#1126)
Browse files Browse the repository at this point in the history
Fixes #992
  • Loading branch information
the-blank-x authored Dec 3, 2023
1 parent a9740fe commit 583c858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ proc parseGraphUser(js: JsonNode): User =
var user = js{"user_result", "result"}
if user.isNull:
user = ? js{"user_results", "result"}
result = parseUser(user{"legacy"})
result = parseUser(user{"legacy"}, user{"rest_id"}.getStr)

if result.verifiedType == VerifiedType.none and user{"is_blue_verified"}.getBool(false):
result.verifiedType = blue
Expand Down
2 changes: 1 addition & 1 deletion src/routes/rss.nim
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ proc createRssRouter*(cfg: Config) =
case tab
of "with_replies": getReplyQuery(name)
of "media": getMediaQuery(name)
# of "search": initQuery(params(request), name=name)
of "search": initQuery(params(request), name=name)
else: Query(fromUser: @[name])

let searchKey = if tab != "search": ""
Expand Down

0 comments on commit 583c858

Please sign in to comment.