# ca.astronomi.boards.post

> A forum topic (thread root) on Asteri, stored in the author's own repo.

- Kind: record
- Record key: tid
- Authority: boards.astronomi.ca
- Lexicon: 1
- Published by [cosm.blue](https://lexicon.garden/identity/did:plc:rnn63n5auoexnihjf7zllr6l), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:rnn63n5auoexnihjf7zllr6l/ca.astronomi.boards.post)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rnn63n5auoexnihjf7zllr6l/ca.astronomi.boards.post/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rnn63n5auoexnihjf7zllr6l/ca.astronomi.boards.post/analytics)

## Record (`ca.astronomi.boards.post`)

Type: record · key tid

### Properties

- `board` (string, required)
  - Constraints: maxLength: 40
- `createdAt` (string · datetime, required)
- `media` (array)
  - `items` (ref)
    - Reference: `#mediaItem`
- `pollOptions` (array)
  - `items` (string)
    - Constraints: maxLength: 80
- `tags` (array)
  - `items` (string)
    - Constraints: maxLength: 60
- `text` (string)
  - Constraints: maxLength: 50000, maxGraphemes: 5000
- `title` (string, required)
  - Constraints: maxLength: 1500, maxGraphemes: 150
- `url` (string · uri)
  - Constraints: maxLength: 2000

## #mediaItem (`ca.astronomi.boards.post#mediaItem`)

Type: object

### Properties

- `alt` (string, required)
  - Constraints: maxLength: 2000, maxGraphemes: 1000
- `image` (blob, required)
  - Constraints: maxSize: 52428800, accept: image/png, image/jpeg, image/webp, image/gif, image/avif

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A forum topic (thread root) on Asteri, stored in the author's own repo.",
      "key": "tid",
      "record": {
        "properties": {
          "board": {
            "maxLength": 40,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "media": {
            "items": {
              "ref": "#mediaItem",
              "type": "ref"
            },
            "maxItems": 10,
            "type": "array"
          },
          "pollOptions": {
            "items": {
              "maxLength": 80,
              "type": "string"
            },
            "maxItems": 6,
            "type": "array"
          },
          "tags": {
            "items": {
              "maxLength": 60,
              "type": "string"
            },
            "maxItems": 3,
            "type": "array"
          },
          "text": {
            "maxGraphemes": 5000,
            "maxLength": 50000,
            "type": "string"
          },
          "title": {
            "maxGraphemes": 150,
            "maxLength": 1500,
            "type": "string"
          },
          "url": {
            "format": "uri",
            "maxLength": 2000,
            "type": "string"
          }
        },
        "required": [
          "title",
          "board",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "mediaItem": {
      "properties": {
        "alt": {
          "maxGraphemes": 1000,
          "maxLength": 2000,
          "type": "string"
        },
        "image": {
          "accept": [
            "image/png",
            "image/jpeg",
            "image/webp",
            "image/gif",
            "image/avif"
          ],
          "maxSize": 52428800,
          "type": "blob"
        }
      },
      "required": [
        "image",
        "alt"
      ],
      "type": "object"
    }
  },
  "id": "ca.astronomi.boards.post",
  "lexicon": 1
}
```
