diff options
| -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); |