Quellcode durchsuchen

Always show the 'pending follow confirmations' if there are any.

Even if the toggle is off.
grunfink vor 1 Jahr
Ursprung
Commit
c9c1323e40
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      html.c

+ 2 - 2
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));
     }