summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2026-02-07 17:41:28 +0100
committerGravatar grunfink2026-02-07 17:41:28 +0100
commit1543bb74f85e0e8eed875df30f4e6c8adfbf97b7 (patch)
tree36bda6d0af6627e0e36aefb8f8c6a29338996e15
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-1543bb74f85e0e8eed875df30f4e6c8adfbf97b7.tar.gz
snac2-1543bb74f85e0e8eed875df30f4e6c8adfbf97b7.tar.xz
snac2-1543bb74f85e0e8eed875df30f4e6c8adfbf97b7.zip
Added a 'webfinger' field to 'Person' objects.HEADmaster
-rw-r--r--activitypub.c3
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)
1921 if (xs_type(location) == XSTYPE_DICT) 1921 if (xs_type(location) == XSTYPE_DICT)
1922 msg = xs_dict_set(msg, "location", location); 1922 msg = xs_dict_set(msg, "location", location);
1923 1923
1924 xs *webfinger = xs_fmt("%s@%s", snac->uid, xs_dict_get(srv_config, "host"));
1925 msg = xs_dict_set(msg, "webfinger", webfinger);
1926
1924 /* cache it */ 1927 /* cache it */
1925 snac_debug(snac, 1, xs_fmt("Caching actor %s", snac->actor)); 1928 snac_debug(snac, 1, xs_fmt("Caching actor %s", snac->actor));
1926 object_add_ow(snac->actor, msg); 1929 object_add_ow(snac->actor, msg);