diff --git a/README.md b/README.md index 0d60b61..6ec425b 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Blossom Servers expose a few endpoints for managing blobs - `PUT /media` [BUD-05](./buds/05.md#put-media) - `Authentication`: Signed [nostr event](./buds/05.md#upload-authorization) -- `PUT /report/` [BUD-07](./buds/07.md) +- `PUT /report` [BUD-09](./buds/09.md) ## Protocol specification (BUDs) diff --git a/buds/07.md b/buds/09.md similarity index 71% rename from buds/07.md rename to buds/09.md index 9b0a332..a86bb5e 100644 --- a/buds/07.md +++ b/buds/09.md @@ -1,4 +1,4 @@ -# BUD-07 +# BUD-09 ## Blob Report @@ -7,9 +7,9 @@ This bud defines a new endpoint for clients and users to report blobs to servers. -### PUT /report/ - reporting a media +### PUT /report - reporting a media -Client MUST provide a report json according to the [NIP-56](https://github.com/nostr-protocol/nips/blob/master/56.md) in the request body. +The requests body MUST be a signed [NIP-56](https://github.com/nostr-protocol/nips/blob/master/56.md) report event with `x` tags containing that hashes of the blobs being reported. Example: @@ -19,7 +19,7 @@ Example: "tags": [ ["x", "", ""], ], - "content": "", + "content": "", // other fields... } ``` @@ -28,9 +28,6 @@ A report request may contain multiple `x` tags or contain some `p` or `e` tags w Server MUST response to report request with a successful code or a code in 4xx/5xx range if there was any error. - -> Note: servers may requests for authorization with `t` tag of `report` as per [BUD-01](./01.md). - ### Client behavior The clients can show a blob report button on posts or in blob details. Or its RECOMMENDED to merge this with normal nostr report and send it to both relays and blossom server. other clients can receive it from relays and hide or blur reported blob from trusted friends. @@ -40,4 +37,4 @@ The clients can show a blob report button on posts or in blob details. Or its RE The servers MAY keep the reports somewhere for operators to check and take action on them. they MAY use a list of trusted people or moderators to directly take action on blob without operator request. Servers MAY consider removed blobs sha256 as blocked in order to prevent rewrite. -Servers MAY advertise a route or landing page to provide their rules and term of service which affects the report process. +Servers SHOULD advertise a route or landing page to provide their rules and term of service which affects the report process.