From a36129c1d8bf20fa73bdf2337ddbe47fd69ecc1f Mon Sep 17 00:00:00 2001 From: syui Date: Wed, 23 Apr 2025 01:19:55 +0000 Subject: [PATCH] =?UTF-8?q?curl=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- curl.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/curl.md b/curl.md index d65a829..4b57d7a 100644 --- a/curl.md +++ b/curl.md @@ -413,4 +413,16 @@ $ curl -sL "https://syu.is/xrpc/com.atproto.repo.listRecords?repo=ai.syu.is&coll link - https://github.com/bluesky-social/atproto/pull/3761/files -- https://github.com/bluesky-social/social-app/pull/8226 \ No newline at end of file +- https://github.com/bluesky-social/social-app/pull/8226 + +推測 + +- https://github.com/bluesky-social/atproto/blob/main/packages/pds/src/auth-verifier.ts + +```sh +host=syu.is +admin_password=xxx +url=https://${host}/xrpc/com.atproto.admin.takeModerationAction +json="{\"action\": \"com.atproto.admin.defs#modEventReport\", \"subject\": {\"$type\": \"com.atproto.admin.defs#repoRef\", \"did\": \"did:plc:example\"}}" +curl -X POST -u admin:${admin_password} -H "Content-Type: application/json" -d "$json" -sL $url +``` \ No newline at end of file