fixed compiler error by using a variable for a case statement
This commit is contained in:
parent
2ce3ee6d84
commit
25b788428b
1 changed files with 2 additions and 1 deletions
|
@ -132,8 +132,9 @@ proc createTimelineRouter*(cfg: Config) =
|
||||||
prefs = cookiePrefs()
|
prefs = cookiePrefs()
|
||||||
after = getCursor()
|
after = getCursor()
|
||||||
names = getNames(@"name")
|
names = getNames(@"name")
|
||||||
|
tab = @"tab"
|
||||||
|
|
||||||
case @"tab":
|
case tab:
|
||||||
of "followers":
|
of "followers":
|
||||||
resp renderMain(renderUserList(await getGraphFollowers(await getUserId(@"name"), getCursor()), prefs), request, cfg, prefs)
|
resp renderMain(renderUserList(await getGraphFollowers(await getUserId(@"name"), getCursor()), prefs), request, cfg, prefs)
|
||||||
of "following":
|
of "following":
|
||||||
|
|
Loading…
Reference in a new issue