summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 0348ec6..c46a971 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -681,10 +681,10 @@ xs_dict *mastoapi_account(snac *logged, const xs_dict *actor)
681 681
682 /* does this user want to publish their contact metrics? */ 682 /* does this user want to publish their contact metrics? */
683 if (xs_is_true(xs_dict_get(user.config, "show_contact_metrics"))) { 683 if (xs_is_true(xs_dict_get(user.config, "show_contact_metrics"))) {
684 xs *fwing = following_list(&user); 684 int fwing = following_list_len(&user);
685 xs *fwers = follower_list(&user); 685 int fwers = follower_list_len(&user);
686 xs *ni = xs_number_new(xs_list_len(fwing)); 686 xs *ni = xs_number_new(fwing);
687 xs *ne = xs_number_new(xs_list_len(fwers)); 687 xs *ne = xs_number_new(fwers);
688 688
689 acct = xs_dict_append(acct, "followers_count", ne); 689 acct = xs_dict_append(acct, "followers_count", ne);
690 acct = xs_dict_append(acct, "following_count", ni); 690 acct = xs_dict_append(acct, "following_count", ni);
@@ -1310,10 +1310,10 @@ void credentials_get(char **body, char **ctype, int *status, snac snac)
1310 1310
1311 /* does this user want to publish their contact metrics? */ 1311 /* does this user want to publish their contact metrics? */
1312 if (xs_is_true(xs_dict_get(snac.config, "show_contact_metrics"))) { 1312 if (xs_is_true(xs_dict_get(snac.config, "show_contact_metrics"))) {
1313 xs *fwing = following_list(&snac); 1313 int fwing = following_list_len(&snac);
1314 xs *fwers = follower_list(&snac); 1314 int fwers = follower_list_len(&snac);
1315 xs *ni = xs_number_new(xs_list_len(fwing)); 1315 xs *ni = xs_number_new(fwing);
1316 xs *ne = xs_number_new(xs_list_len(fwers)); 1316 xs *ne = xs_number_new(fwers);
1317 1317
1318 acct = xs_dict_append(acct, "followers_count", ne); 1318 acct = xs_dict_append(acct, "followers_count", ne);
1319 acct = xs_dict_append(acct, "following_count", ni); 1319 acct = xs_dict_append(acct, "following_count", ni);