fix requests.

This commit is contained in:
Kay 2025-01-03 12:51:09 +00:00
parent e5462c3e1a
commit fa676debf3
2 changed files with 6 additions and 9 deletions

View File

@ -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/<sha245>` [BUD-07](./buds/07.md)
- `PUT /report` [BUD-09](./buds/09.md)
## Protocol specification (BUDs)

View File

@ -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/<sha256> - 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", "<blob-sha256>", "<type-based-on-nip-56>"],
],
"content": "<report details>",
"content": "<human readable report details>",
// 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.