about summary refs log tree commit diff
path: root/networks.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-16 17:46:19 -0400
committerJune McEnroe <june@causal.agency>2020-07-16 17:46:19 -0400
commit6500baa1ffc720ec4c0f256dd99dab478225122b (patch)
tree8afb6e817f3fd21c93a42a6fd65de931b262be05 /networks.c
parentRemove viewport meta (diff)
downloadscooper-6500baa1ffc720ec4c0f256dd99dab478225122b.tar.gz
scooper-6500baa1ffc720ec4c0f256dd99dab478225122b.zip
Big refactor, remove struct Scope
Diffstat (limited to '')
-rw-r--r--networks.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/networks.c b/networks.c
index c92da21..af3ad80 100644
--- a/networks.c
+++ b/networks.c
@@ -45,8 +45,6 @@ const char *NetworksQuery = SQL(
 );
 
 enum kcgi_err networksPage(struct kreq *req) {
-	struct Scope scope = {0};
-
 	enum kcgi_err error = 0
 		|| httpHead(req, KHTTP_200, KMIME_TEXT_HTML)
 		|| khttp_body(req);
@@ -56,7 +54,7 @@ enum kcgi_err networksPage(struct kreq *req) {
 	error = error
 		|| khtml_open(&html, req, 0)
 		|| htmlHead(&html, "Litterbox")
-		|| htmlNav(&html, scope);
+		|| htmlNav(&html, req);
 	if (error) return error;
 
 	sqlite3_reset(stmt.networks);