1NIP-562======34Reporting5---------67`optional`89A report is a `kind 1984` event that signals to users and relays that 10some referenced content is objectionable. The definition of objectionable is11obviously subjective and all agents on the network (users, apps, relays, etc.) 12may consume and take action on them as they see fit.1314The `content` MAY contain additional information submitted by the entity15reporting the content.1617Tags18----1920The report event MUST include a `p` tag referencing the pubkey of the user you21are reporting.2223If reporting a note, an `e` tag MUST also be included referencing the note id.2425A `report type` string MUST be included as the 3rd entry to the `e`, `p` or `x` tag26being reported, which consists of the following report types:2728- `nudity` - depictions of nudity, porn, etc.29- `malware` - virus, trojan horse, worm, robot, spyware, adware, back door, ransomware, rootkit, kidnapper, etc.30- `profanity` - profanity, hateful speech, etc.31- `illegal` - something which may be illegal in some jurisdiction32- `spam` - spam33- `impersonation` - someone pretending to be someone else34- `other` - for reports that don't fit in the above categories3536Some report tags only make sense for profile reports, such as `impersonation`.3738- `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.3940`l` and `L` tags MAY be also be used as defined in [NIP-32](32.md) to support41further qualification and querying.4243Example events44--------------4546```yaml47{48 "kind": 1984,49 "tags": [50 ["p", "<pubkey>", "nudity"],51 ["L", "social.nos.ontology"],52 ["l", "NS-nud", "social.nos.ontology"]53 ],54 "content": "",55 // other fields...56}57```5859```yaml60{61 "kind": 1984,62 "tags": [63 ["e", "<eventId>", "illegal"],64 ["p", "<pubkey>"]65 ],66 "content": "He's insulting the king!",67 // other fields...68}69```7071```yaml72{73 "kind": 1984,74 "tags": [75 ["p", "<impersonator pubkey>", "impersonation"]76 ],77 "content": "Profile is impersonating nostr:<victim bech32 pubkey>",78 // other fields...79}80```8182```yaml83{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```9495Client behavior96---------------9798Clients can use reports from friends to make moderation decisions if they99choose to. For instance, if 3+ of your friends report a profile for `nudity`,100clients can have an option to automatically blur photos from said account.101102103Relay behavior104--------------105106It is not recommended that relays perform automatic moderation using reports,107as they can be easily gamed. Admins could use reports from trusted moderators to108takedown illegal or explicit content if the relay does not allow such things.