diff options
Diffstat (limited to '56.md')
| -rw-r--r-- | 56.md | 27 |
1 files changed, 21 insertions, 6 deletions
| @@ -22,7 +22,7 @@ are reporting. | |||
| 22 | 22 | ||
| 23 | If reporting a note, an `e` tag MUST also be included referencing the note id. | 23 | If reporting a note, an `e` tag MUST also be included referencing the note id. |
| 24 | 24 | ||
| 25 | A `report type` string MUST be included as the 3rd entry to the `e` or `p` tag | 25 | A `report type` string MUST be included as the 3rd entry to the `e`, `p` or `x` tag |
| 26 | being reported, which consists of the following report types: | 26 | being reported, which consists of the following report types: |
| 27 | 27 | ||
| 28 | - `nudity` - depictions of nudity, porn, etc. | 28 | - `nudity` - depictions of nudity, porn, etc. |
| @@ -33,7 +33,9 @@ being reported, which consists of the following report types: | |||
| 33 | - `impersonation` - someone pretending to be someone else | 33 | - `impersonation` - someone pretending to be someone else |
| 34 | - `other` - for reports that don't fit in the above categories | 34 | - `other` - for reports that don't fit in the above categories |
| 35 | 35 | ||
| 36 | Some report tags only make sense for profile reports, such as `impersonation` | 36 | Some report tags only make sense for profile reports, such as `impersonation`. |
| 37 | |||
| 38 | - `x` tags SHOULD be info hash of a blob which is intended to be report. when the `x` tag is represented client MUST include an `e` tag which is the id of the event that contains the mentioned blob. also, additionally these events can contain a `server` tag to point to media servers which may contain the mentioned media. | ||
| 37 | 39 | ||
| 38 | `l` and `L` tags MAY be also be used as defined in [NIP-32](32.md) to support | 40 | `l` and `L` tags MAY be also be used as defined in [NIP-32](32.md) to support |
| 39 | further qualification and querying. | 41 | further qualification and querying. |
| @@ -45,7 +47,7 @@ Example events | |||
| 45 | { | 47 | { |
| 46 | "kind": 1984, | 48 | "kind": 1984, |
| 47 | "tags": [ | 49 | "tags": [ |
| 48 | ["p", <pubkey>, "nudity"], | 50 | ["p", "<pubkey>", "nudity"], |
| 49 | ["L", "social.nos.ontology"], | 51 | ["L", "social.nos.ontology"], |
| 50 | ["l", "NS-nud", "social.nos.ontology"] | 52 | ["l", "NS-nud", "social.nos.ontology"] |
| 51 | ], | 53 | ], |
| @@ -58,8 +60,8 @@ Example events | |||
| 58 | { | 60 | { |
| 59 | "kind": 1984, | 61 | "kind": 1984, |
| 60 | "tags": [ | 62 | "tags": [ |
| 61 | ["e", <eventId>, "illegal"], | 63 | ["e", "<eventId>", "illegal"], |
| 62 | ["p", <pubkey>] | 64 | ["p", "<pubkey>"] |
| 63 | ], | 65 | ], |
| 64 | "content": "He's insulting the king!", | 66 | "content": "He's insulting the king!", |
| 65 | // other fields... | 67 | // other fields... |
| @@ -70,13 +72,26 @@ Example events | |||
| 70 | { | 72 | { |
| 71 | "kind": 1984, | 73 | "kind": 1984, |
| 72 | "tags": [ | 74 | "tags": [ |
| 73 | ["p", <impersonator pubkey>, "impersonation"] | 75 | ["p", "<impersonator pubkey>", "impersonation"] |
| 74 | ], | 76 | ], |
| 75 | "content": "Profile is impersonating nostr:<victim bech32 pubkey>", | 77 | "content": "Profile is impersonating nostr:<victim bech32 pubkey>", |
| 76 | // other fields... | 78 | // other fields... |
| 77 | } | 79 | } |
| 78 | ``` | 80 | ``` |
| 79 | 81 | ||
| 82 | ```jsonc | ||
| 83 | { | ||
| 84 | "kind": 1984, | ||
| 85 | "tags": [ | ||
| 86 | ["x", "<blob hash>", "malware"], | ||
| 87 | ["e", "<event id which contains the blob on x tag>", "malware"], | ||
| 88 | ["server", "https://you-may-find-the-blob-here.com/path-to-url.ext"] | ||
| 89 | ], | ||
| 90 | "content": "This file contains malware software in it.", | ||
| 91 | // other fields... | ||
| 92 | } | ||
| 93 | ``` | ||
| 94 | |||
| 80 | Client behavior | 95 | Client behavior |
| 81 | --------------- | 96 | --------------- |
| 82 | 97 | ||