# fyi.opensocial.revision

> Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.revision)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.revision/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.revision/examples)

## Definitions

### `fyi.opensocial.revision`

**Type**: `record`

A later version of something its author wrote in one of a group's spaces — a thread, a reply — kept beside it rather than written over it, so what points at the original (a reply, a vote) still does. Only the original's author's revisions count; the latest is what's shown, the rest are its history. In the author's own repo, in the same space.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `embed` | `union` | No | Its pictures now; without, it has none. |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | The original, as it was first written. |
| `text` | `string` | No | What it says now: a thread's body, or a reply's text. |
| `title` | `string` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A later version of something its author wrote in one of a group's spaces — a thread, a reply — kept beside it rather than written over it, so what points at the original (a reply, a vote) still does. Only the original's author's revisions count; the latest is what's shown, the rest are its history. In the author's own repo, in the same space.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "embed": {
            "description": "Its pictures now; without, it has none.",
            "refs": [
              "fyi.opensocial.embed.images"
            ],
            "type": "union"
          },
          "subject": {
            "description": "The original, as it was first written.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "text": {
            "description": "What it says now: a thread's body, or a reply's text.",
            "maxGraphemes": 3000,
            "maxLength": 30000,
            "type": "string"
          },
          "title": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "fyi.opensocial.revision",
  "lexicon": 1
}
```
