diff options
| author | grunfink <grunfink@comam.es> | 2026-03-20 16:33:52 +0100 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-03-20 16:33:52 +0100 |
| commit | f66d52d70159a91bbd1b4ea5f811af2facdc42f6 (patch) | |
| tree | 735d2c18896f293a7de7fcbf4ee37b83534d7886 /webfinger.c | |
| parent | ef86f4856292d8dfb0c34101bc26524341357e2f (diff) | |
Added more "rel" links to webfinger.
Diffstat (limited to 'webfinger.c')
| -rw-r--r-- | webfinger.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/webfinger.c b/webfinger.c index 4d760d3..a86d26e 100644 --- a/webfinger.c +++ b/webfinger.c @@ -247,6 +247,36 @@ int webfinger_get_handler(const xs_dict *req, const char *q_path, links = xs_list_append(links, d); } + { + xs *d = xs_dict_new(); + xs *t = xs_fmt("https:/""/%s/authorize_interaction?uri={uri}", xs_dict_get(srv_config, "host")); + + d = xs_dict_set(d, "rel", "http://ostatus.org/schema/1.0/subscribe"); + d = xs_dict_set(d, "template", t); + + links = xs_list_append(links, d); + } + + { + xs *d = xs_dict_new(); + xs *t = xs_fmt("https:/""/%s/share?text={content}", xs_dict_get(srv_config, "host")); + + d = xs_dict_set(d, "rel", "https://w3id.org/fep/3b86/Create"); + d = xs_dict_set(d, "template", t); + + links = xs_list_append(links, d); + } + + { + xs *d = xs_dict_new(); + xs *t = xs_fmt("https:/""/%s/authorize_interaction?uri={object}", xs_dict_get(srv_config, "host")); + + d = xs_dict_set(d, "rel", "https://w3id.org/fep/3b86/Object"); + d = xs_dict_set(d, "template", t); + + links = xs_list_append(links, d); + } + aliases = xs_list_append(aliases, snac.actor); aliases = xs_list_append(aliases, snac.actor_alt); |