diff options
| author | 2025-06-07 06:43:58 +0200 | |
|---|---|---|
| committer | 2025-06-07 06:43:58 +0200 | |
| commit | c9c1323e40080acbd8bffe904e8ba8fc3ff8bbd7 (patch) | |
| tree | 1e6b292cec6ac150bd3ee05d75c6f9c0091f975f /html.c | |
| parent | Skip incomplete attachments. (diff) | |
| download | snac2-c9c1323e40080acbd8bffe904e8ba8fc3ff8bbd7.tar.gz snac2-c9c1323e40080acbd8bffe904e8ba8fc3ff8bbd7.tar.xz snac2-c9c1323e40080acbd8bffe904e8ba8fc3ff8bbd7.zip | |
Always show the 'pending follow confirmations' if there are any.
Even if the toggle is off.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3295,12 +3295,12 @@ xs_str *html_people(snac *user) | |||
| 3295 | 3295 | ||
| 3296 | xs *wing = following_list(user); | 3296 | xs *wing = following_list(user); |
| 3297 | xs *wers = follower_list(user); | 3297 | xs *wers = follower_list(user); |
| 3298 | xs *pending = pending_list(user); | ||
| 3298 | 3299 | ||
| 3299 | xs_html *lists = xs_html_tag("div", | 3300 | xs_html *lists = xs_html_tag("div", |
| 3300 | xs_html_attr("class", "snac-posts")); | 3301 | xs_html_attr("class", "snac-posts")); |
| 3301 | 3302 | ||
| 3302 | if (xs_is_true(xs_dict_get(user->config, "approve_followers"))) { | 3303 | if (xs_list_len(pending) || xs_is_true(xs_dict_get(user->config, "approve_followers"))) { |
| 3303 | xs *pending = pending_list(user); | ||
| 3304 | xs_html_add(lists, | 3304 | xs_html_add(lists, |
| 3305 | html_people_list(user, pending, L("Pending follow confirmations"), "p", proxy)); | 3305 | html_people_list(user, pending, L("Pending follow confirmations"), "p", proxy)); |
| 3306 | } | 3306 | } |