Qualify QueryKind.media to fix Nim 2.0.x build

Fixes #1422
This commit is contained in:
Zed 2026-07-09 11:32:31 +02:00
commit 8394b044ef
6 changed files with 12 additions and 12 deletions

View file

@ -68,7 +68,7 @@ proc createRssRouter*(cfg: Config) =
let
prefs = requestPrefs()
query = initQuery(params(request))
if query.kind notin {tweets, top, media}:
if query.kind notin {QueryKind.tweets, QueryKind.top, QueryKind.media}:
resp Http400, showError("Only Tweet searches are allowed for RSS feeds.", cfg)
let

View file

@ -53,7 +53,7 @@ proc fetchProfile*(after: string; query: Query; skipRail=false): Future[Profile]
let
rail =
skipIf(skipRail or query.kind == media, @[]):
skipIf(skipRail or query.kind == QueryKind.media, @[]):
getCachedPhotoRail(userId)
user = getCachedUser(name)