diff options
| author | grunfink <grunfink@comam.es> | 2026-02-07 17:41:28 +0100 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-02-07 17:41:28 +0100 |
| commit | 1543bb74f85e0e8eed875df30f4e6c8adfbf97b7 (patch) | |
| tree | 36bda6d0af6627e0e36aefb8f8c6a29338996e15 | |
| parent | 027f0e71bd40ad898dff1cb5ce8319500164708a (diff) | |
Added a 'webfinger' field to 'Person' objects.
| -rw-r--r-- | activitypub.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |