commit 9568ec8
Paul Wilde
·
2024-01-28 21:04:11 +0000 UTC
parent 376d849
cleanup
2 files changed,
+1,
-8
M
httpd.c
M
httpd.c
+0,
-8
1@@ -243,14 +243,6 @@ int server_get_handler(xs_dict *req, const char *q_path,
2 *body = xs_str_new("User-agent: *\n"
3 "Disallow: /\n");
4 }
5- else
6- if (strcmp(q_path, "/.well-known/host-meta") == 0) {
7- status = 200;
8- *ctype = "application/xrd+xml";
9- *body = xs_str_new("<XRD>"
10- "<Link rel=\"lrdd\" type=\"application/xrd+xml\" template=\"%s/.well-known/webfinger?resource={uri}\"/>"
11- "</XRD>");
12- }
13
14 if (status != 0)
15 srv_debug(1, xs_fmt("server_get_handler serving '%s' %d", q_path, status));
+1,
-0
1@@ -1414,6 +1414,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2 const char *type = xs_dict_get(msg, "type");
3 if (!xs_match(type, "Note|Question|Page|Article"))
4 continue;
5+
6 const char *from = NULL;
7 if (strcmp(type, "Page") == 0)
8 from = xs_dict_get(msg, "audience");