# fyi.opensocial.templateLike

> 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.templateLike)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.templateLike/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.templateLike/examples)

## Definitions

### `fyi.opensocial.templateLike`

**Type**: `record`

Liking a template shared with everyone, in whoever likes it's own repo: about one version of it, with a line about it if they like. Shown on the template's page, with their name.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | The version it's about: a fyi.opensocial.templateVersion. |
| `template` | `string` (at-uri) | Yes | The template that version is of: its fyi.opensocial.template, in the same repo. |
| `text` | `string` | No | A line about it. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Liking a template shared with everyone, in whoever likes it's own repo: about one version of it, with a line about it if they like. Shown on the template's page, with their name.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "subject": {
            "description": "The version it's about: a fyi.opensocial.templateVersion.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "template": {
            "description": "The template that version is of: its fyi.opensocial.template, in the same repo.",
            "format": "at-uri",
            "type": "string"
          },
          "text": {
            "description": "A line about it.",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "template",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "fyi.opensocial.templateLike",
  "lexicon": 1
}
```
