aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-04-18 09:20:15 +0200
committerdefault <nobody@localhost>2025-04-18 09:20:15 +0200
commit0263c87035712ff6bd7ef57354b6425803eefc1d (patch)
treea1c37998663b12b1a3fdb56a83b9fe15220a56c7
parent9b863605f9b0e888986b01f07c634637b5186bb6 (diff)
Simplified 'list_del' to use the account the user said.
-rw-r--r--main.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/main.c b/main.c
index de5921b..6cd1bc9 100644
--- a/main.c
+++ b/main.c
@@ -383,17 +383,10 @@ int main(int argc, char *argv[])
xs *lid = list_maint(&snac, url, 4);
if (lid != NULL) {
- xs *actor = NULL;
- xs *uid = NULL;
-
- if (valid_status(webfinger_request(account, &actor, &uid))) {
- xs *md5 = xs_md5_hex(actor, strlen(actor));
+ xs *md5 = xs_md5_hex(account, strlen(account));
- list_content(&snac, lid, md5, 2);
- printf("Actor %s (%s) deleted from list '%s' (%s)\n", actor, uid, url, lid);
- }
- else
- fprintf(stderr, "Cannot resolve account '%s'\n", account);
+ list_content(&snac, lid, md5, 2);
+ printf("Actor %s deleted from list '%s' (%s)\n", account, url, lid);
}
else
fprintf(stderr, "Cannot find a list named '%s'\n", url);