mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
The aka is returned in the alsoKnownAs actor field.
This commit is contained in:
parent
0f3c60d1ee
commit
b1e7de2fd3
1 changed files with 8 additions and 0 deletions
|
@ -1241,6 +1241,14 @@ xs_dict *msg_actor(snac *snac)
|
|||
msg = xs_dict_set(msg, "endpoints", d);
|
||||
}
|
||||
|
||||
/* does this user have an aka? */
|
||||
const char *aka = xs_dict_get(snac->config, "aka");
|
||||
if (xs_type(aka) == XSTYPE_STRING && *aka) {
|
||||
xs *loaka = xs_list_append(xs_list_new(), aka);
|
||||
|
||||
msg = xs_dict_set(msg, "alsoKnownAs", loaka);
|
||||
}
|
||||
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue