diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 50 |
1 files changed, 25 insertions, 25 deletions
| @@ -18,31 +18,31 @@ int usage(void) | |||
| 18 | printf("\n"); | 18 | printf("\n"); |
| 19 | printf("Commands:\n"); | 19 | printf("Commands:\n"); |
| 20 | printf("\n"); | 20 | printf("\n"); |
| 21 | printf("init [{basedir}] Initializes the data storage\n"); | 21 | printf("init [{basedir}] Initializes the data storage\n"); |
| 22 | printf("upgrade {basedir} Upgrade to a new version\n"); | 22 | printf("upgrade {basedir} Upgrade to a new version\n"); |
| 23 | printf("adduser {basedir} [{uid}] Adds a new user\n"); | 23 | printf("adduser {basedir} [{uid}] Adds a new user\n"); |
| 24 | printf("deluser {basedir} {uid} Deletes a user\n"); | 24 | printf("deluser {basedir} {uid} Deletes a user\n"); |
| 25 | printf("httpd {basedir} Starts the HTTPD daemon\n"); | 25 | printf("httpd {basedir} Starts the HTTPD daemon\n"); |
| 26 | printf("purge {basedir} Purges old data\n"); | 26 | printf("purge {basedir} Purges old data\n"); |
| 27 | printf("state {basedir} Prints server state\n"); | 27 | printf("state {basedir} Prints server state\n"); |
| 28 | printf("webfinger {basedir} {actor} Queries about an actor (@user@host or actor url)\n"); | 28 | printf("webfinger {basedir} {actor} Queries about an actor (@user@host or actor url)\n"); |
| 29 | printf("queue {basedir} {uid} Processes a user queue\n"); | 29 | printf("queue {basedir} {uid} Processes a user queue\n"); |
| 30 | printf("follow {basedir} {uid} {actor} Follows an actor\n"); | 30 | printf("follow {basedir} {uid} {actor} Follows an actor\n"); |
| 31 | printf("unfollow {basedir} {uid} {actor} Unfollows an actor\n"); | 31 | printf("unfollow {basedir} {uid} {actor} Unfollows an actor\n"); |
| 32 | printf("request {basedir} {uid} {url} Requests an object\n"); | 32 | printf("request {basedir} {uid} {url} Requests an object\n"); |
| 33 | printf("actor {basedir} [{uid}] {url} Requests an actor\n"); | 33 | printf("actor {basedir} [{uid}] {url} Requests an actor\n"); |
| 34 | printf("note {basedir} {uid} {text} [files...] Sends a note with optional attachments\n"); | 34 | printf("note {basedir} {uid} {text} [files...] Sends a note with optional attachments\n"); |
| 35 | printf("announce {basedir} {uid} {url} Announces (boosts) a post\n"); | 35 | printf("boost|announce {basedir} {uid} {url} Boosts (announces) a post\n"); |
| 36 | printf("resetpwd {basedir} {uid} Resets the password of a user\n"); | 36 | printf("resetpwd {basedir} {uid} Resets the password of a user\n"); |
| 37 | printf("ping {basedir} {uid} {actor} Pings an actor\n"); | 37 | printf("ping {basedir} {uid} {actor} Pings an actor\n"); |
| 38 | printf("webfinger_s {basedir} {uid} {actor} Queries about an actor (@user@host or actor url)\n"); | 38 | printf("webfinger_s {basedir} {uid} {actor} Queries about an actor (@user@host or actor url)\n"); |
| 39 | printf("pin {basedir} {uid} {msg_url} Pins a message\n"); | 39 | printf("pin {basedir} {uid} {msg_url} Pins a message\n"); |
| 40 | printf("unpin {basedir} {uid} {msg_url} Unpins a message\n"); | 40 | printf("unpin {basedir} {uid} {msg_url} Unpins a message\n"); |
| 41 | printf("block {basedir} {instance_url} Blocks a full instance\n"); | 41 | printf("block {basedir} {instance_url} Blocks a full instance\n"); |
| 42 | printf("unblock {basedir} {instance_url} Unblocks a full instance\n"); | 42 | printf("unblock {basedir} {instance_url} Unblocks a full instance\n"); |
| 43 | printf("limit {basedir} {uid} {actor} Limits an actor (drops their announces)\n"); | 43 | printf("limit {basedir} {uid} {actor} Limits an actor (drops their announces)\n"); |
| 44 | printf("unlimit {basedir} {uid} {actor} Unlimits an actor\n"); | 44 | printf("unlimit {basedir} {uid} {actor} Unlimits an actor\n"); |
| 45 | printf("verify_links {basedir} {uid} Verifies a user's links (in the metadata)\n"); | 45 | printf("verify_links {basedir} {uid} Verifies a user's links (in the metadata)\n"); |
| 46 | 46 | ||
| 47 | return 1; | 47 | return 1; |
| 48 | } | 48 | } |
| @@ -281,7 +281,7 @@ int main(int argc, char *argv[]) | |||
| 281 | return 0; | 281 | return 0; |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | if (strcmp(cmd, "announce") == 0) { /** **/ | 284 | if (strcmp(cmd, "boost") == 0 || strcmp(cmd, "announce") == 0) { /** **/ |
| 285 | xs *msg = msg_admiration(&snac, url, "Announce"); | 285 | xs *msg = msg_admiration(&snac, url, "Announce"); |
| 286 | 286 | ||
| 287 | if (msg != NULL) { | 287 | if (msg != NULL) { |