diff --git a/README.md b/README.md index b0537d7..57f01a4 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,6 @@ Depends: * [jj](http://gitea.phreedom.club/localhost_frssoft/jj) * [curl](https://curl.se/) * [fzy](https://github.com/jhawthorn/fzy) -* links - for authorization on instances +* Any browser (links set by default) - for authorization on instances Also, thk Tolstoevsky for Pleroma instance (set by default instance) diff --git a/pleroma-cli.sh b/pleroma-cli.sh index 55980c4..d408f38 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -1,6 +1,7 @@ #!/bin/sh instance=$(jj -i config.json instance) +alias default_auth_browser=links instance_point="https://$instance/api/v1" instance_point_pleroma="https://$instance/api/pleroma" instance_hist='instance.hist' @@ -48,7 +49,7 @@ auth_api_get_code() { auth_api_create_client client_id=$(jj -i .app_sessions/$instance client_id) - links "https://$instance/oauth/authorize?client_id=$client_id&response_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=read+write+follow" + default_auth_browser "https://$instance/oauth/authorize?client_id=$client_id&response_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=read+write+follow" echo 'Input token-code:' read pass }