diff options
| author | Ruben Beltran del Rio <rbdr@bravo-i.local> | 2026-04-15 16:59:19 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <rbdr@bravo-i.local> | 2026-04-15 16:59:19 +0200 |
| commit | 6fc748933ad263ba0e8c78eb9ae1e085a2b0dfb2 (patch) | |
| tree | e82d7cf345ed9c0e4b40e6156c509eb48aef13ee /httpd.c | |
| parent | 5e1dbb58904ad39f20cd8e90c5d8dded2a6ca2ad (diff) | |
Add neighborhood featuremaster
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -280,6 +280,18 @@ int server_get_handler(xs_dict *req, const char *q_path, *body = xs_base64_dec(default_avatar_base64(), b_size); *ctype = "image/png"; } + /* BEGIN neighborhood */ + else + if (strcmp(q_path, "/neighborhood") == 0) { + if (xs_type(xs_dict_get(srv_config, "neighborhood")) == XSTYPE_LIST) { + xs *tl = timeline_neighborhood_list(0, 30); + *body = html_timeline(NULL, tl, 0, 0, 0, 0, + L("Neighborhood"), NULL, 0, NULL, 0); + if (*body) + status = HTTP_STATUS_OK; + } + } + /* END neighborhood */ else if (strcmp(q_path, "/.well-known/nodeinfo") == 0) { status = HTTP_STATUS_OK; |