summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httpd.c8
-rw-r--r--mastoapi.c1
2 files changed, 1 insertions, 8 deletions
diff --git a/httpd.c b/httpd.c
index 3a39481..a20d692 100644
--- a/httpd.c
+++ b/httpd.c
@@ -243,14 +243,6 @@ int server_get_handler(xs_dict *req, const char *q_path,
243 *body = xs_str_new("User-agent: *\n" 243 *body = xs_str_new("User-agent: *\n"
244 "Disallow: /\n"); 244 "Disallow: /\n");
245 } 245 }
246 else
247 if (strcmp(q_path, "/.well-known/host-meta") == 0) {
248 status = 200;
249 *ctype = "application/xrd+xml";
250 *body = xs_str_new("<XRD>"
251 "<Link rel=\"lrdd\" type=\"application/xrd+xml\" template=\"%s/.well-known/webfinger?resource={uri}\"/>"
252 "</XRD>");
253 }
254 246
255 if (status != 0) 247 if (status != 0)
256 srv_debug(1, xs_fmt("server_get_handler serving '%s' %d", q_path, status)); 248 srv_debug(1, xs_fmt("server_get_handler serving '%s' %d", q_path, status));
diff --git a/mastoapi.c b/mastoapi.c
index 6ed3835..8a48198 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1414,6 +1414,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
1414 const char *type = xs_dict_get(msg, "type"); 1414 const char *type = xs_dict_get(msg, "type");
1415 if (!xs_match(type, "Note|Question|Page|Article")) 1415 if (!xs_match(type, "Note|Question|Page|Article"))
1416 continue; 1416 continue;
1417
1417 const char *from = NULL; 1418 const char *from = NULL;
1418 if (strcmp(type, "Page") == 0) 1419 if (strcmp(type, "Page") == 0)
1419 from = xs_dict_get(msg, "audience"); 1420 from = xs_dict_get(msg, "audience");