diff --git a/src/quotesite.nim b/src/quotesite.nim index 20d58bb..9dac970 100644 --- a/src/quotesite.nim +++ b/src/quotesite.nim @@ -235,7 +235,7 @@ routes: if (@"kind").startsWith "hashtag-": let channel = (@"kind").replace("hashtag-", "#") - rows = db.getAllRows(sql"SELECT * FROM quotes WHERE channel=?, deleted=0 ORDER BY time desc LIMIT 20 OFFSET ?", channel, qid * 20) + rows = db.getAllRows(sql"SELECT * FROM quotes WHERE channel=? and deleted=0 ORDER BY time desc LIMIT 20 OFFSET ?", channel, qid * 20) title = channel & " page " & @"id" else: