aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-12-09 12:30:00 +0100
committerdefault <nobody@localhost>2024-12-09 12:30:00 +0100
commit8afc834fec5525a919c505ba5a3f281cb05efbd7 (patch)
treea8f18fdf198b196dec716d90de89f1954770a71c /html.c
parent2a29fc102e8cb33a970ac1eb4c43bc7edbafd113 (diff)
Fixed a bug in the 'Approve' and 'Discard' buttons.
Diffstat (limited to 'html.c')
-rw-r--r--html.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/html.c b/html.c
index edb7e1e..2c353d2 100644
--- a/html.c
+++ b/html.c
@@ -2576,15 +2576,6 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons
html_button("limit", L("Limit"),
L("Block announces (boosts) from this user")));
}
- else
- if (pending_check(snac, actor_id)) {
- xs_html_add(form,
- html_button("approve", L("Approve"),
- L("Approve this follow request")));
-
- xs_html_add(form,
- html_button("discard", L("Discard"), L("Discard this follow request")));
- }
else {
xs_html_add(form,
html_button("follow", L("Follow"),
@@ -2595,6 +2586,15 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons
html_button("delete", L("Delete"), L("Delete this user")));
}
+ if (pending_check(snac, actor_id)) {
+ xs_html_add(form,
+ html_button("approve", L("Approve"),
+ L("Approve this follow request")));
+
+ xs_html_add(form,
+ html_button("discard", L("Discard"), L("Discard this follow request")));
+ }
+
if (is_muted(snac, actor_id))
xs_html_add(form,
html_button("unmute", L("Unmute"),