diff options
| -rw-r--r-- | activitypub.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index 3830acc..c41dfbd 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1241,6 +1241,14 @@ xs_dict *msg_actor(snac *snac) | |||
| 1241 | msg = xs_dict_set(msg, "endpoints", d); | 1241 | msg = xs_dict_set(msg, "endpoints", d); |
| 1242 | } | 1242 | } |
| 1243 | 1243 | ||
| 1244 | /* does this user have an aka? */ | ||
| 1245 | const char *aka = xs_dict_get(snac->config, "aka"); | ||
| 1246 | if (xs_type(aka) == XSTYPE_STRING && *aka) { | ||
| 1247 | xs *loaka = xs_list_append(xs_list_new(), aka); | ||
| 1248 | |||
| 1249 | msg = xs_dict_set(msg, "alsoKnownAs", loaka); | ||
| 1250 | } | ||
| 1251 | |||
| 1244 | return msg; | 1252 | return msg; |
| 1245 | } | 1253 | } |
| 1246 | 1254 | ||