# site.mochott.comment

> Published by [tokimeki.blue](https://lexicon.garden/identity/did:plc:4tr5dqti7nmu6g2czpthntak)

✓ This is the authoritative definition for this NSID.

## Description

A comment on an article. Supports single-level threading via the optional parent field.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.comment)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.comment/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.comment/examples)

## Definitions

### `site.mochott.comment`

**Type**: `record`

Record representing a comment on an article. Deleting this record removes the comment.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `parent` | `string` (at-uri) | No | AT URI of the parent comment record. Used for single-level threading. |
| `content` | `string` | Yes | The text content of the comment. |
| `subject` | `string` (at-uri) | Yes | AT URI of the article record being commented on. |
| `createdAt` | `string` (datetime) | Yes | Timestamp when the comment was created. |

## Raw Schema

```json
{
  "id": "site.mochott.comment",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "content",
          "createdAt"
        ],
        "properties": {
          "parent": {
            "type": "string",
            "format": "at-uri",
            "description": "AT URI of the parent comment record. Used for single-level threading."
          },
          "content": {
            "type": "string",
            "maxLength": 30000,
            "description": "The text content of the comment.",
            "maxGraphemes": 3000
          },
          "subject": {
            "type": "string",
            "format": "at-uri",
            "description": "AT URI of the article record being commented on."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when the comment was created."
          }
        }
      },
      "description": "Record representing a comment on an article. Deleting this record removes the comment."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1,
  "description": "A comment on an article. Supports single-level threading via the optional parent field."
}
```
