2023-02-07 16:15:38 -05:00
|
|
|
NIP-56
|
|
|
|
======
|
|
|
|
|
|
|
|
Reporting
|
|
|
|
---------
|
|
|
|
|
2024-04-03 10:59:37 -04:00
|
|
|
`optional`
|
2023-02-07 16:15:38 -05:00
|
|
|
|
2024-04-03 10:59:37 -04:00
|
|
|
A report is a `kind 1984` event that signals to users and relays that
|
|
|
|
some referenced content is objectionable. The definition of objectionable is
|
|
|
|
obviously subjective and all agents on the network (users, apps, relays, etc.)
|
|
|
|
may consume and take action on them as they see fit.
|
2023-02-07 16:15:38 -05:00
|
|
|
|
2023-07-20 11:48:55 -04:00
|
|
|
The `content` MAY contain additional information submitted by the entity
|
2023-02-07 16:15:38 -05:00
|
|
|
reporting the content.
|
|
|
|
|
|
|
|
Tags
|
|
|
|
----
|
|
|
|
|
|
|
|
The report event MUST include a `p` tag referencing the pubkey of the user you
|
|
|
|
are reporting.
|
|
|
|
|
|
|
|
If reporting a note, an `e` tag MUST also be included referencing the note id.
|
|
|
|
|
|
|
|
A `report type` string MUST be included as the 3rd entry to the `e` or `p` tag
|
|
|
|
being reported, which consists of the following report types:
|
|
|
|
|
|
|
|
- `nudity` - depictions of nudity, porn, etc.
|
|
|
|
- `profanity` - profanity, hateful speech, etc.
|
|
|
|
- `illegal` - something which may be illegal in some jurisdiction
|
|
|
|
- `spam` - spam
|
|
|
|
- `impersonation` - someone pretending to be someone else
|
2024-04-03 10:50:02 -04:00
|
|
|
- `other` - for reports that don't fit in the above categories
|
2023-02-07 16:15:38 -05:00
|
|
|
|
|
|
|
Some report tags only make sense for profile reports, such as `impersonation`
|
|
|
|
|
2023-06-07 19:09:26 -04:00
|
|
|
`l` and `L` tags MAY be also be used as defined in [NIP-32](32.md) to support
|
|
|
|
further qualification and querying.
|
|
|
|
|
2024-05-02 13:23:01 -04:00
|
|
|
Capital `P` tags MAY also be included on a report to notify third-parties who
|
|
|
|
may be able to act upon the report, such as relay admins.
|
|
|
|
|
2023-02-07 16:15:38 -05:00
|
|
|
Example events
|
|
|
|
--------------
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"kind": 1984,
|
|
|
|
"tags": [
|
2023-07-24 23:33:16 -04:00
|
|
|
["p", <pubkey>, "nudity"],
|
2023-06-07 19:09:26 -04:00
|
|
|
["L", "social.nos.ontology"],
|
2023-07-24 23:33:16 -04:00
|
|
|
["l", "NS-nud", "social.nos.ontology"]
|
2023-02-07 16:15:38 -05:00
|
|
|
],
|
|
|
|
"content": "",
|
|
|
|
...
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
"kind": 1984,
|
|
|
|
"tags": [
|
2023-06-07 19:09:26 -04:00
|
|
|
["e", <eventId>, "illegal"],
|
|
|
|
["p", <pubkey>]
|
2023-02-07 16:15:38 -05:00
|
|
|
],
|
|
|
|
"content": "He's insulting the king!",
|
|
|
|
...
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
"kind": 1984,
|
|
|
|
"tags": [
|
2023-07-03 01:23:47 -04:00
|
|
|
["p", <impersonator pubkey>, "impersonation"]
|
2023-02-07 16:15:38 -05:00
|
|
|
],
|
2023-07-03 01:23:47 -04:00
|
|
|
"content": "Profile is impersonating nostr:<victim bech32 pubkey>",
|
2023-02-07 16:15:38 -05:00
|
|
|
...
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
Client behavior
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Clients can use reports from friends to make moderation decisions if they
|
2023-07-03 01:23:47 -04:00
|
|
|
choose to. For instance, if 3+ of your friends report a profile for `nudity`,
|
2023-02-07 16:15:38 -05:00
|
|
|
clients can have an option to automatically blur photos from said account.
|
|
|
|
|
|
|
|
|
|
|
|
Relay behavior
|
|
|
|
--------------
|
|
|
|
|
|
|
|
It is not recommended that relays perform automatic moderation using reports,
|
|
|
|
as they can be easily gamed. Admins could use reports from trusted moderators to
|
|
|
|
takedown illegal or explicit content if the relay does not allow such things.
|