mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Added cmdline 'boost' as an alias to 'announce'.
This commit is contained in:
parent
90ee416bf8
commit
a6958d6161
1 changed files with 25 additions and 25 deletions
4
main.c
4
main.c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue