about summary refs log tree commit diff
path: root/networks.c
diff options
context:
space:
mode:
Diffstat (limited to 'networks.c')
-rw-r--r--networks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networks.c b/networks.c
index f397bab..7f974c4 100644
--- a/networks.c
+++ b/networks.c
@@ -26,7 +26,7 @@ const char *NetworksQuery = SQL(
 		SELECT time, context
 		FROM events
 		ORDER BY event DESC
-		LIMIT 500 // TODO: Configurable.
+		LIMIT :recent
 	), activeNetworks AS (
 		SELECT DISTINCT network
 		FROM contexts
@@ -55,6 +55,8 @@ enum kcgi_err pageNetworks(struct kreq *req) {
 		|| htmlNav(&html, NULL, NULL);
 	if (error) return error;
 
+	dbBindInt(stmt.networks, ":recent", pageRecent);
+
 	enum State {
 		None,
 		Active,