commit 0263c87
default
·
2025-04-18 07:20:15 +0000 UTC
parent 9b86360
Simplified 'list_del' to use the account the user said.
1 files changed,
+3,
-10
M
main.c
M
main.c
+3,
-10
1@@ -383,17 +383,10 @@ int main(int argc, char *argv[])
2 xs *lid = list_maint(&snac, url, 4);
3
4 if (lid != NULL) {
5- xs *actor = NULL;
6- xs *uid = NULL;
7-
8- if (valid_status(webfinger_request(account, &actor, &uid))) {
9- xs *md5 = xs_md5_hex(actor, strlen(actor));
10+ xs *md5 = xs_md5_hex(account, strlen(account));
11
12- list_content(&snac, lid, md5, 2);
13- printf("Actor %s (%s) deleted from list '%s' (%s)\n", actor, uid, url, lid);
14- }
15- else
16- fprintf(stderr, "Cannot resolve account '%s'\n", account);
17+ list_content(&snac, lid, md5, 2);
18+ printf("Actor %s deleted from list '%s' (%s)\n", account, url, lid);
19 }
20 else
21 fprintf(stderr, "Cannot find a list named '%s'\n", url);