mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-24 00:23:38 +00:00
Fixed actor / post Delete confusion bug.
This commit is contained in:
parent
f4d337c549
commit
ed44462a41
1 changed files with 4 additions and 2 deletions
6
html.c
6
html.c
|
@ -1021,7 +1021,8 @@ d_char *html_people_list(snac *snac, d_char *os, d_char *list, const char *heade
|
|||
|
||||
xs *s1 = xs_fmt(
|
||||
"<p><form method=\"post\" action=\"%s/admin/action\">\n"
|
||||
"<input type=\"hidden\" name=\"actor\" value=\"%s\">\n",
|
||||
"<input type=\"hidden\" name=\"actor\" value=\"%s\">\n"
|
||||
"<input type=\"hidden\" name=\"actor-delete\" value=\"%s\">\n",
|
||||
|
||||
snac->actor, actor_id,
|
||||
md5, t
|
||||
|
@ -1553,7 +1554,8 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
|
|||
}
|
||||
else
|
||||
if (strcmp(action, L("Delete")) == 0) {
|
||||
if (actor != NULL) {
|
||||
char *actor_delete = xs_dict_get(p_vars, "actor-delete");
|
||||
if (actor_delete != NULL) {
|
||||
/* delete follower */
|
||||
if (valid_status(follower_del(&snac, actor)))
|
||||
snac_log(&snac, xs_fmt("deleted follower %s", actor));
|
||||
|
|
Loading…
Reference in a new issue