Added cmdline 'boost' as an alias to 'announce'.

This commit is contained in:
default 2024-04-10 17:38:54 +02:00
parent 90ee416bf8
commit a6958d6161

4
main.c
View file

@ -32,7 +32,7 @@ int usage(void)
printf("request {basedir} {uid} {url} Requests an object\n");
printf("actor {basedir} [{uid}] {url} Requests an actor\n");
printf("note {basedir} {uid} {text} [files...] Sends a note with optional attachments\n");
printf("announce {basedir} {uid} {url} Announces (boosts) a post\n");
printf("boost|announce {basedir} {uid} {url} Boosts (announces) a post\n");
printf("resetpwd {basedir} {uid} Resets the password of a user\n");
printf("ping {basedir} {uid} {actor} Pings an actor\n");
printf("webfinger_s {basedir} {uid} {actor} Queries about an actor (@user@host or actor url)\n");
@ -281,7 +281,7 @@ int main(int argc, char *argv[])
return 0;
}
if (strcmp(cmd, "announce") == 0) { /** **/
if (strcmp(cmd, "boost") == 0 || strcmp(cmd, "announce") == 0) { /** **/
xs *msg = msg_admiration(&snac, url, "Announce");
if (msg != NULL) {