mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
cleanup
This commit is contained in:
parent
376d849e8b
commit
9568ec8bfe
2 changed files with 1 additions and 8 deletions
8
httpd.c
8
httpd.c
|
@ -243,14 +243,6 @@ int server_get_handler(xs_dict *req, const char *q_path,
|
|||
*body = xs_str_new("User-agent: *\n"
|
||||
"Disallow: /\n");
|
||||
}
|
||||
else
|
||||
if (strcmp(q_path, "/.well-known/host-meta") == 0) {
|
||||
status = 200;
|
||||
*ctype = "application/xrd+xml";
|
||||
*body = xs_str_new("<XRD>"
|
||||
"<Link rel=\"lrdd\" type=\"application/xrd+xml\" template=\"%s/.well-known/webfinger?resource={uri}\"/>"
|
||||
"</XRD>");
|
||||
}
|
||||
|
||||
if (status != 0)
|
||||
srv_debug(1, xs_fmt("server_get_handler serving '%s' %d", q_path, status));
|
||||
|
|
|
@ -1414,6 +1414,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||
const char *type = xs_dict_get(msg, "type");
|
||||
if (!xs_match(type, "Note|Question|Page|Article"))
|
||||
continue;
|
||||
|
||||
const char *from = NULL;
|
||||
if (strcmp(type, "Page") == 0)
|
||||
from = xs_dict_get(msg, "audience");
|
||||
|
|
Loading…
Reference in a new issue