fix
This commit is contained in:
12
README.md
12
README.md
@@ -41,10 +41,20 @@ docker composeはportsを書かなければ公開されません。内部間の
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
# create account
|
# create account
|
||||||
$ curl -X POST -H "Content-Type: application/json" -sL https://${pds}/xrpc/com.atproto.server.createAccount -d "{\"email\": \"$email\", \"handle\": \"$handle\", \"password\": \"$password\"}"
|
$ url=https://${pds}/xrpc/com.atproto.server.createAccount
|
||||||
|
$ json="{\"email\": \"$email\", \"handle\": \"$handle\", \"password\": \"$password\"}"
|
||||||
|
$ curl -X POST -H "Content-Type: application/json" -d $json -sL $url
|
||||||
```
|
```
|
||||||
|
|
||||||
3文字以下の名前を使用するには`src/pds/handle`を変更します。また、social-app(web client)からは3文字以下のアカウントを作成できません。apiから作成してください。
|
3文字以下の名前を使用するには`src/pds/handle`を変更します。また、social-app(web client)からは3文字以下のアカウントを作成できません。apiから作成してください。
|
||||||
|
|
||||||
- [/atproto/packages/pds/src/handle/index.ts](https://github.com/bluesky-social/atproto/blame/d4d5a6edba972c0e9976289bde8bc0b42ff547ca/packages/pds/src/handle/index.ts#L86-L88)
|
- [/atproto/packages/pds/src/handle/index.ts](https://github.com/bluesky-social/atproto/blame/d4d5a6edba972c0e9976289bde8bc0b42ff547ca/packages/pds/src/handle/index.ts#L86-L88)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# invite code
|
||||||
|
admin_password=xxx
|
||||||
|
url=https://$host/xrpc/com.atproto.server.createInviteCode
|
||||||
|
json="{\"useCount\":1}"
|
||||||
|
curl -X POST -u admin:${admin_password} -H "Content-Type: application/json" -d "$json" -sL $url
|
||||||
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user