diff options
| author | default <nobody@localhost> | 2024-12-04 18:05:41 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-12-04 18:05:41 +0100 |
| commit | a45a0d68e3d8a942a2bf516d5086920dbcb3a862 (patch) | |
| tree | 16fbed5bcfc57ce157a804dc602b9ec0b3e2f158 /html.c | |
| parent | 93bc87ecb6b8d1f49733be2bddf1a7301092888a (diff) | |
Also show contact metrics in the public page, if the user wants.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -938,6 +938,18 @@ static xs_html *html_user_body(snac *user, int read_only) xs_html_add(top_user, snac_metadata); } + + if (xs_is_true(xs_dict_get(user->config, "show_contact_metrics"))) { + xs *fwers = follower_list(user); + xs *fwing = following_list(user); + + xs *s1 = xs_fmt(L("%d following %d followers"), + xs_list_len(fwing), xs_list_len(fwers)); + + xs_html_add(top_user, + xs_html_tag("p", + xs_html_text(s1))); + } } xs_html_add(body, |