From 0baa52545f248681649cf3ef3741e68b75ce94c5 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Sun, 27 Feb 2022 22:32:41 +0000 Subject: [PATCH] Show account statistics FossilOrigin-Name: 8f88f019d107f3b7cd67eee6f767d4eaf09137ea1f8248c16b8248245d6be1a1 --- src/account.c | 6 +++--- src/status.c | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/account.c b/src/account.c index 4f1d590..aded806 100644 --- a/src/account.c +++ b/src/account.c @@ -51,11 +51,11 @@ char* construct_account_page(struct mstdnt_account* acct, acct->acct, acct->avatar, "Statuses", - 0, + acct->statuses_count, "Following", - 0, + acct->following_count, "Followers", - 0, + acct->followers_count, statuses_html); if (result_size == -1) diff --git a/src/status.c b/src/status.c index b3e7c5f..2a4e395 100644 --- a/src/status.c +++ b/src/status.c @@ -101,7 +101,6 @@ char* construct_status(struct mstdnt_status* status, int* size) status->account.display_name, /* Username */ config_url_prefix, status->account.acct, - status->account.acct, /* Account */ "Public", /* visibility */ status->content,