Skip to content

Commit

Permalink
Merge pull request #2 from zedeus/guest_accounts
Browse files Browse the repository at this point in the history
Fix search queries in user search RSS feeds (zedeus#1126)
  • Loading branch information
kristobalus authored Dec 14, 2023
2 parents a9740fe + 583c858 commit e5369ed
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 e5369ed

Please sign in to comment.