summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
497 display_name = prefu; 497 display_name = prefu;
498 498
499 const char *id = xs_dict_get(actor, "id"); 499 const char *id = xs_dict_get(actor, "id");
500 const char *type = xs_dict_get(actor, "type");
500 const char *pub = xs_dict_get(actor, "published"); 501 const char *pub = xs_dict_get(actor, "published");
501 xs *acct_md5 = xs_md5_hex(id, strlen(id)); 502 xs *acct_md5 = xs_md5_hex(id, strlen(id));
502 acct = xs_dict_append(acct, "id", acct_md5); 503 acct = xs_dict_append(acct, "id", acct_md5);
504 acct = xs_dict_append(acct, "type", type);
503 acct = xs_dict_append(acct, "username", prefu); 505 acct = xs_dict_append(acct, "username", prefu);
504 acct = xs_dict_append(acct, "display_name", display_name); 506 acct = xs_dict_append(acct, "display_name", display_name);
505 507