From b2b0ed7e41c0ce8149a9cca038133d754a04c9df Mon Sep 17 00:00:00 2001 From: syui Date: Fri, 18 Oct 2024 22:58:15 +0900 Subject: [PATCH] fix --- README.md | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a5735d8..6bcd623 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,6 @@ - [at]mosphere - at://domain -## api - -```sh -# 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\"}" -``` - -3文字以下の名前を使用するには`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) - ## self-host 現在、`bsky`, `bsync`のpatchを当てないと動きません。また、`social-app`はアバターが表示されません。動かないものは [itaru2622/bluesky-selfhost-env](https://github.com/itaru2622/bluesky-selfhost-env) を使用すると良いでしょう。 @@ -33,3 +22,21 @@ $ curl -X POST -H "Content-Type: application/json" -sL https://${pds}/xrpc/com.a |feed|https://github.com/bluesky-social/feed-generator|| |web|https://github.com/bluesky-social/social-app|[itaru2622/bluesky-social-app](https://hub.docker.com/r/itaru2622/bluesky-social-app)| +```sh +# BSKY_IMG_URI_ENDPOINT, BSKY_BLOB_CACHE_LOC +# avatar link example +1. https://appview.${host}/img/avatar/plain/${did}/${cid}@jpeg +2. https://${host}/xrpc/com.atproto.sync.getBlob?did=${did}&cid=${cid} +``` + +## api + +```sh +# 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\"}" +``` + +3文字以下の名前を使用するには`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) +