summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/html.c b/html.c
index fe6b14e..d2fe3a0 100644
--- a/html.c
+++ b/html.c
@@ -1021,7 +1021,8 @@ d_char *html_people_list(snac *snac, d_char *os, d_char *list, const char *heade
1021 1021
1022 xs *s1 = xs_fmt( 1022 xs *s1 = xs_fmt(
1023 "<p><form method=\"post\" action=\"%s/admin/action\">\n" 1023 "<p><form method=\"post\" action=\"%s/admin/action\">\n"
1024 "<input type=\"hidden\" name=\"actor\" value=\"%s\">\n", 1024 "<input type=\"hidden\" name=\"actor\" value=\"%s\">\n"
1025 "<input type=\"hidden\" name=\"actor-delete\" value=\"%s\">\n",
1025 1026
1026 snac->actor, actor_id, 1027 snac->actor, actor_id,
1027 md5, t 1028 md5, t
@@ -1553,7 +1554,8 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
1553 } 1554 }
1554 else 1555 else
1555 if (strcmp(action, L("Delete")) == 0) { 1556 if (strcmp(action, L("Delete")) == 0) {
1556 if (actor != NULL) { 1557 char *actor_delete = xs_dict_get(p_vars, "actor-delete");
1558 if (actor_delete != NULL) {
1557 /* delete follower */ 1559 /* delete follower */
1558 if (valid_status(follower_del(&snac, actor))) 1560 if (valid_status(follower_del(&snac, actor)))
1559 snac_log(&snac, xs_fmt("deleted follower %s", actor)); 1561 snac_log(&snac, xs_fmt("deleted follower %s", actor));