commit 2544ec9

Haijo7  ·  2023-06-11 14:38:06 +0000 UTC
parent f6b836e
add user type to mastodon profile
1 files changed,  +2, -0
+2, -0
 1@@ -497,9 +497,11 @@ xs_dict *mastoapi_account(const xs_dict *actor)
 2         display_name = prefu;
 3 
 4     const char *id  = xs_dict_get(actor, "id");
 5+    const char *type  = xs_dict_get(actor, "type");
 6     const char *pub = xs_dict_get(actor, "published");
 7     xs *acct_md5 = xs_md5_hex(id, strlen(id));
 8     acct = xs_dict_append(acct, "id",           acct_md5);
 9+    acct = xs_dict_append(acct, "type",         type);
10     acct = xs_dict_append(acct, "username",     prefu);
11     acct = xs_dict_append(acct, "display_name", display_name);
12