summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authorHaijo7 <haijo7@protonmail.com>2023-06-11 16:38:06 +0200
committerHaijo7 <haijo7@protonmail.com>2023-06-11 16:38:06 +0200
commit2544ec92b20c44a9b0dee29817b394b1e5c74f70 (patch)
tree8045582f43094d94f583b23d20c978e3e6247ca6 /mastoapi.c
parentf6b836e120408c9a6d2791fc932aea3c081d1654 (diff)
add user type to mastodon profile
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index acefe57..ff5c756 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -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);