diff options
| -rw-r--r-- | html.c | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -3712,12 +3712,12 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, | |||
| 3712 | } | 3712 | } |
| 3713 | 3713 | ||
| 3714 | 3714 | ||
| 3715 | xs_html *html_people_list(snac *user, xs_list *list, const char *header, const char *t, const char *proxy, int do_count) | 3715 | xs_html *html_people_list(snac *user, xs_list *list, const char *header, const char *t, const char *proxy, int count) |
| 3716 | { | 3716 | { |
| 3717 | xs_html *snac_posts; | 3717 | xs_html *snac_posts; |
| 3718 | xs *header_cnt; | 3718 | xs *header_cnt; |
| 3719 | if (do_count) | 3719 | if (count > -1) |
| 3720 | header_cnt = xs_fmt("%s - %d\n", header, xs_list_len(list)); | 3720 | header_cnt = xs_fmt("%s - %d\n", header, count); |
| 3721 | else | 3721 | else |
| 3722 | header_cnt = xs_fmt("%s\n", header); | 3722 | header_cnt = xs_fmt("%s\n", header); |
| 3723 | 3723 | ||
| @@ -3965,12 +3965,12 @@ xs_str *html_people(snac *user) | |||
| 3965 | 3965 | ||
| 3966 | if (xs_list_len(pending) || xs_is_true(xs_dict_get(user->config, "approve_followers"))) { | 3966 | if (xs_list_len(pending) || xs_is_true(xs_dict_get(user->config, "approve_followers"))) { |
| 3967 | xs_html_add(lists, | 3967 | xs_html_add(lists, |
| 3968 | html_people_list(user, pending, L("Pending follow confirmations"), "p", proxy, 1)); | 3968 | html_people_list(user, pending, L("Pending follow confirmations"), "p", proxy, xs_list_len(pending))); |
| 3969 | } | 3969 | } |
| 3970 | 3970 | ||
| 3971 | xs_html_add(lists, | 3971 | xs_html_add(lists, |
| 3972 | html_people_list(user, wing, L("People you follow"), "i", proxy, 1), | 3972 | html_people_list(user, wing, L("People you follow"), "i", proxy, following_list_len(user)), |
| 3973 | html_people_list(user, wers, L("People that follow you"), "e", proxy, 1)); | 3973 | html_people_list(user, wers, L("People that follow you"), "e", proxy, xs_list_len(wers))); |
| 3974 | 3974 | ||
| 3975 | xs_html *html = xs_html_tag("html", | 3975 | xs_html *html = xs_html_tag("html", |
| 3976 | html_user_head(user, NULL, NULL), | 3976 | html_user_head(user, NULL, NULL), |
| @@ -4001,7 +4001,7 @@ xs_str *html_people_one(snac *user, const char *actor, const xs_list *list, | |||
| 4001 | xs *foll = xs_list_append(xs_list_new(), actor); | 4001 | xs *foll = xs_list_append(xs_list_new(), actor); |
| 4002 | 4002 | ||
| 4003 | xs_html_add(lists, | 4003 | xs_html_add(lists, |
| 4004 | html_people_list(user, foll, L("Contact's posts"), "p", proxy, 0)); | 4004 | html_people_list(user, foll, L("Contact's posts"), "p", proxy, -1)); |
| 4005 | 4005 | ||
| 4006 | xs_html_add(body, lists); | 4006 | xs_html_add(body, lists); |
| 4007 | 4007 | ||