summary refs log tree commit diff
path: root/networks.c
diff options
context:
space:
mode:
Diffstat (limited to 'networks.c')
-rw-r--r--networks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/networks.c b/networks.c
index 91f5131..f1f8c89 100644
--- a/networks.c
+++ b/networks.c
@@ -37,6 +37,7 @@ const char *NetworksQuery = SQL(
 	), allNetworks AS (
 		SELECT DISTINCT network
 		FROM contexts
+		WHERE query <= NOT :public
 		ORDER BY network COLLATE NOCASE
 	)
 	SELECT network, 1 FROM activeNetworks
@@ -59,6 +60,7 @@ enum kcgi_err networksPage(struct kreq *req) {
 
 	sqlite3_reset(stmt.networks);
 	dbBindInt(stmt.networks, ":recent", contextsRecent);
+	dbBindInt(stmt.networks, ":public", contextsPublic);
 
 	enum State {
 		None,