mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
add user type to mastodon profile
This commit is contained in:
parent
f6b836e120
commit
2544ec92b2
1 changed files with 2 additions and 0 deletions
|
@ -497,9 +497,11 @@ xs_dict *mastoapi_account(const xs_dict *actor)
|
|||
display_name = prefu;
|
||||
|
||||
const char *id = xs_dict_get(actor, "id");
|
||||
const char *type = xs_dict_get(actor, "type");
|
||||
const char *pub = xs_dict_get(actor, "published");
|
||||
xs *acct_md5 = xs_md5_hex(id, strlen(id));
|
||||
acct = xs_dict_append(acct, "id", acct_md5);
|
||||
acct = xs_dict_append(acct, "type", type);
|
||||
acct = xs_dict_append(acct, "username", prefu);
|
||||
acct = xs_dict_append(acct, "display_name", display_name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue