aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-06-07 06:43:58 +0200
committergrunfink <grunfink@comam.es>2025-06-07 06:43:58 +0200
commitc9c1323e40080acbd8bffe904e8ba8fc3ff8bbd7 (patch)
tree1e6b292cec6ac150bd3ee05d75c6f9c0091f975f /html.c
parentcbf71ca0cabdf46a1eb595db01601858c8823acc (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index d513d10..892475c 100644
--- a/html.c
+++ b/html.c
@@ -3295,12 +3295,12 @@ xs_str *html_people(snac *user)
xs *wing = following_list(user);
xs *wers = follower_list(user);
+ xs *pending = pending_list(user);
xs_html *lists = xs_html_tag("div",
xs_html_attr("class", "snac-posts"));
- if (xs_is_true(xs_dict_get(user->config, "approve_followers"))) {
- xs *pending = pending_list(user);
+ if (xs_list_len(pending) || xs_is_true(xs_dict_get(user->config, "approve_followers"))) {
xs_html_add(lists,
html_people_list(user, pending, L("Pending follow confirmations"), "p", proxy));
}