From f66d52d70159a91bbd1b4ea5f811af2facdc42f6 Mon Sep 17 00:00:00 2001 From: grunfink Date: Fri, 20 Mar 2026 16:33:52 +0100 Subject: Added more "rel" links to webfinger. --- webfinger.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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); -- cgit