From 25b788428bf43ccaff9a2b33bd28933feea3b250 Mon Sep 17 00:00:00 2001 From: PrivacyDev Date: Tue, 6 Jun 2023 07:05:02 -0400 Subject: [PATCH] fixed compiler error by using a variable for a case statement --- src/routes/timeline.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/timeline.nim b/src/routes/timeline.nim index aa56b33..d0ea0e7 100644 --- a/src/routes/timeline.nim +++ b/src/routes/timeline.nim @@ -132,8 +132,9 @@ proc createTimelineRouter*(cfg: Config) = prefs = cookiePrefs() after = getCursor() names = getNames(@"name") + tab = @"tab" - case @"tab": + case tab: of "followers": resp renderMain(renderUserList(await getGraphFollowers(await getUserId(@"name"), getCursor()), prefs), request, cfg, prefs) of "following":