commit 8afc834

default  ·  2024-12-09 11:30:00 +0000 UTC
parent 2a29fc1
Fixed a bug in the 'Approve' and 'Discard' buttons.
1 files changed,  +9, -9
M html.c
M html.c
+9, -9
 1@@ -2576,15 +2576,6 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons
 2                         html_button("limit", L("Limit"),
 3                                 L("Block announces (boosts) from this user")));
 4             }
 5-            else
 6-            if (pending_check(snac, actor_id)) {
 7-                xs_html_add(form,
 8-                    html_button("approve", L("Approve"),
 9-                                L("Approve this follow request")));
10-
11-                xs_html_add(form,
12-                    html_button("discard", L("Discard"), L("Discard this follow request")));
13-            }
14             else {
15                 xs_html_add(form,
16                     html_button("follow", L("Follow"),
17@@ -2595,6 +2586,15 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons
18                         html_button("delete", L("Delete"), L("Delete this user")));
19             }
20 
21+            if (pending_check(snac, actor_id)) {
22+                xs_html_add(form,
23+                    html_button("approve", L("Approve"),
24+                                L("Approve this follow request")));
25+
26+                xs_html_add(form,
27+                    html_button("discard", L("Discard"), L("Discard this follow request")));
28+            }
29+
30             if (is_muted(snac, actor_id))
31                 xs_html_add(form,
32                     html_button("unmute", L("Unmute"),