commit c9c1323

grunfink  ·  2025-06-07 04:43:58 +0000 UTC
parent cbf71ca
Always show the 'pending follow confirmations' if there are any.

Even if the toggle is off.
1 files changed,  +2, -2
M html.c
M html.c
+2, -2
 1@@ -3295,12 +3295,12 @@ xs_str *html_people(snac *user)
 2 
 3     xs *wing = following_list(user);
 4     xs *wers = follower_list(user);
 5+    xs *pending = pending_list(user);
 6 
 7     xs_html *lists = xs_html_tag("div",
 8         xs_html_attr("class", "snac-posts"));
 9 
10-    if (xs_is_true(xs_dict_get(user->config, "approve_followers"))) {
11-        xs *pending = pending_list(user);
12+    if (xs_list_len(pending) || xs_is_true(xs_dict_get(user->config, "approve_followers"))) {
13         xs_html_add(lists,
14             html_people_list(user, pending, L("Pending follow confirmations"), "p", proxy));
15     }