diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 11 |
1 files changed, 8 insertions, 3 deletions
| @@ -355,7 +355,7 @@ int main(int argc, char *argv[]) | |||
| 355 | xs *lid = list_maint(&snac, url, 4); | 355 | xs *lid = list_maint(&snac, url, 4); |
| 356 | 356 | ||
| 357 | if (lid != NULL) { | 357 | if (lid != NULL) { |
| 358 | xs *lcont = list_content(&snac, lid, NULL, 0); | 358 | xs *lcont = list_members(&snac, lid, NULL, 0); |
| 359 | const char *md5; | 359 | const char *md5; |
| 360 | 360 | ||
| 361 | xs_list_foreach(lcont, md5) { | 361 | xs_list_foreach(lcont, md5) { |
| @@ -411,7 +411,7 @@ int main(int argc, char *argv[]) | |||
| 411 | if (valid_status(webfinger_request(account, &actor, &uid))) { | 411 | if (valid_status(webfinger_request(account, &actor, &uid))) { |
| 412 | xs *md5 = xs_md5_hex(actor, strlen(actor)); | 412 | xs *md5 = xs_md5_hex(actor, strlen(actor)); |
| 413 | 413 | ||
| 414 | list_content(&snac, lid, md5, 1); | 414 | list_members(&snac, lid, md5, 1); |
| 415 | printf("Actor %s (%s) added to list '%s' (%s)\n", actor, uid, url, lid); | 415 | printf("Actor %s (%s) added to list '%s' (%s)\n", actor, uid, url, lid); |
| 416 | } | 416 | } |
| 417 | else | 417 | else |
| @@ -434,7 +434,7 @@ int main(int argc, char *argv[]) | |||
| 434 | if (lid != NULL) { | 434 | if (lid != NULL) { |
| 435 | xs *md5 = xs_md5_hex(account, strlen(account)); | 435 | xs *md5 = xs_md5_hex(account, strlen(account)); |
| 436 | 436 | ||
| 437 | list_content(&snac, lid, md5, 2); | 437 | list_members(&snac, lid, md5, 2); |
| 438 | printf("Actor %s deleted from list '%s' (%s)\n", account, url, lid); | 438 | printf("Actor %s deleted from list '%s' (%s)\n", account, url, lid); |
| 439 | } | 439 | } |
| 440 | else | 440 | else |
| @@ -739,6 +739,11 @@ int main(int argc, char *argv[]) | |||
| 739 | return 0; | 739 | return 0; |
| 740 | } | 740 | } |
| 741 | 741 | ||
| 742 | if (strcmp(cmd, "collect_outbox") == 0) { /** **/ | ||
| 743 | enqueue_collect_outbox(&snac, url); | ||
| 744 | return 0; | ||
| 745 | } | ||
| 746 | |||
| 742 | if (strcmp(cmd, "insert") == 0) { /** **/ | 747 | if (strcmp(cmd, "insert") == 0) { /** **/ |
| 743 | int status; | 748 | int status; |
| 744 | xs *data = NULL; | 749 | xs *data = NULL; |