From 1543bb74f85e0e8eed875df30f4e6c8adfbf97b7 Mon Sep 17 00:00:00 2001 From: grunfink Date: Sat, 7 Feb 2026 17:41:28 +0100 Subject: Added a 'webfinger' field to 'Person' objects. --- activitypub.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activitypub.c b/activitypub.c index 8eb7844..0535269 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1921,6 +1921,9 @@ xs_dict *msg_actor(snac *snac) if (xs_type(location) == XSTYPE_DICT) msg = xs_dict_set(msg, "location", location); + xs *webfinger = xs_fmt("%s@%s", snac->uid, xs_dict_get(srv_config, "host")); + msg = xs_dict_set(msg, "webfinger", webfinger); + /* cache it */ snac_debug(snac, 1, xs_fmt("Caching actor %s", snac->actor)); object_add_ow(snac->actor, msg); -- cgit v1.2.3