mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
Fixed a bug in the 'Approve' and 'Discard' buttons.
This commit is contained in:
parent
2a29fc102e
commit
8afc834fec
1 changed files with 9 additions and 9 deletions
18
html.c
18
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"),
|
html_button("limit", L("Limit"),
|
||||||
L("Block announces (boosts) from this user")));
|
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 {
|
else {
|
||||||
xs_html_add(form,
|
xs_html_add(form,
|
||||||
html_button("follow", L("Follow"),
|
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")));
|
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))
|
if (is_muted(snac, actor_id))
|
||||||
xs_html_add(form,
|
xs_html_add(form,
|
||||||
html_button("unmute", L("Unmute"),
|
html_button("unmute", L("Unmute"),
|
||||||
|
|
Loading…
Reference in a new issue