# cc.coffeencode.forum.config

> Forum configuration. Lives in the forum owner's repo at rkey 'self'. The owner is implicitly a moderator.

- Kind: record
- Record key: literal:self
- Authority: forum.coffeencode.cc
- Lexicon: 1
- Published by [coffeencode.cc](https://lexicon.garden/identity/did:plc:z7hzwpuv5ytin56wecfxa4mx), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:z7hzwpuv5ytin56wecfxa4mx/cc.coffeencode.forum.config)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:z7hzwpuv5ytin56wecfxa4mx/cc.coffeencode.forum.config/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:z7hzwpuv5ytin56wecfxa4mx/cc.coffeencode.forum.config/analytics)

## Record (`cc.coffeencode.forum.config`)

Type: record · key literal:self

### Properties

- `banner` (blob)
  - Constraints: maxSize: 2000000, accept: image/png, image/jpeg, image/webp
- `createdAt` (string · datetime, required)
- `description` (string): Markdown description of the forum.
  - Constraints: maxLength: 20000, maxGraphemes: 2000
- `icon` (blob)
  - Constraints: maxSize: 1000000, accept: image/png, image/jpeg, image/webp
- `moderators` (array): DIDs allowed to publish moderation actions for this forum.
  - Constraints: maxLength: 50
  - `items` (string · did)
- `name` (string, required)
  - Constraints: minLength: 1, maxLength: 640, maxGraphemes: 64
- `rules` (array)
  - Constraints: maxLength: 20
  - `items` (ref)
    - Reference: `cc.coffeencode.forum.defs#rule`
- `tags` (array): Suggested tags for posts.
  - Constraints: maxLength: 50
  - `items` (string)
    - Constraints: maxLength: 320, maxGraphemes: 32

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Forum configuration. Lives in the forum owner's repo at rkey 'self'. The owner is implicitly a moderator.",
      "key": "literal:self",
      "record": {
        "properties": {
          "banner": {
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "maxSize": 2000000,
            "type": "blob"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "Markdown description of the forum.",
            "maxGraphemes": 2000,
            "maxLength": 20000,
            "type": "string"
          },
          "icon": {
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "maxSize": 1000000,
            "type": "blob"
          },
          "moderators": {
            "description": "DIDs allowed to publish moderation actions for this forum.",
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "name": {
            "maxGraphemes": 64,
            "maxLength": 640,
            "minLength": 1,
            "type": "string"
          },
          "rules": {
            "items": {
              "ref": "cc.coffeencode.forum.defs#rule",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "tags": {
            "description": "Suggested tags for posts.",
            "items": {
              "maxGraphemes": 32,
              "maxLength": 320,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          }
        },
        "required": [
          "name",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "cc.coffeencode.forum.config",
  "lexicon": 1
}
```
