# app.studynext.moderation

> A moderation decision, written into the shared moderation account's (studynext.app) own repo by the admin dashboard. Every client reads these to hide flagged users and to warn a user who has been moderated. rkey is a sanitized form of the subject DID, so re-moderating the same user overwrites the prior reason.

- Kind: record
- Record key: any
- Authority: studynext.app
- Lexicon: 1
- Published by [studynext.app](https://lexicon.garden/identity/did:plc:nstib2qjcu3tyun7cxz4dxcm), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.moderation)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.moderation/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.moderation/analytics)

## Record (`app.studynext.moderation`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `reason` (string, required): Reason shown to the moderated user.
  - Constraints: maxLength: 2000
- `reasonType` (string)
  - Constraints: maxLength: 100
- `subject` (string · did, required): DID of the moderated user.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A moderation decision, written into the shared moderation account's (studynext.app) own repo by the admin dashboard. Every client reads these to hide flagged users and to warn a user who has been moderated. rkey is a sanitized form of the subject DID, so re-moderating the same user overwrites the prior reason.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "reason": {
            "description": "Reason shown to the moderated user.",
            "maxLength": 2000,
            "type": "string"
          },
          "reasonType": {
            "maxLength": 100,
            "type": "string"
          },
          "subject": {
            "description": "DID of the moderated user.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "reason",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.moderation",
  "lexicon": 1
}
```
