# forum.barazo.interaction.reaction

> Published by [barazo.forum](https://lexicon.garden/identity/did:plc:7brt3r7rokkjqc4wjgeovnyx)

✓ This is the authoritative definition for this NSID.

## Description

A reaction to a forum topic or reply, with configurable reaction types per community.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7brt3r7rokkjqc4wjgeovnyx/forum.barazo.interaction.reaction)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7brt3r7rokkjqc4wjgeovnyx/forum.barazo.interaction.reaction/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7brt3r7rokkjqc4wjgeovnyx/forum.barazo.interaction.reaction/examples)

## Definitions

### `forum.barazo.interaction.reaction#like`

**Type**: `token`

Simple approval reaction.

Simple approval reaction.

### `forum.barazo.interaction.reaction`

**Type**: `record`

Record containing a reaction to a forum topic or reply.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `type` | `string` | Yes | Reaction type identifier. Communities may define additional values. |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | The topic or reply being reacted to. |
| `community` | `string` (did) | Yes | DID of the community where this reaction was created. Immutable origin identifier. |
| `createdAt` | `string` (datetime) | Yes | Client-declared timestamp when this reaction was originally created. |

### `forum.barazo.interaction.reaction#heart`

**Type**: `token`

Love/appreciation reaction.

Love/appreciation reaction.

### `forum.barazo.interaction.reaction#thumbsup`

**Type**: `token`

Agreement/thumbs-up reaction.

Agreement/thumbs-up reaction.

## Raw Schema

```json
{
  "id": "forum.barazo.interaction.reaction",
  "defs": {
    "like": {
      "type": "token",
      "description": "Simple approval reaction."
    },
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "type",
          "community",
          "createdAt"
        ],
        "properties": {
          "type": {
            "type": "string",
            "maxLength": 300,
            "description": "Reaction type identifier. Communities may define additional values.",
            "knownValues": [
              "forum.barazo.interaction.reaction#like",
              "forum.barazo.interaction.reaction#heart",
              "forum.barazo.interaction.reaction#thumbsup"
            ],
            "maxGraphemes": 30
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "The topic or reply being reacted to."
          },
          "community": {
            "type": "string",
            "format": "did",
            "description": "DID of the community where this reaction was created. Immutable origin identifier."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Client-declared timestamp when this reaction was originally created."
          }
        }
      },
      "description": "Record containing a reaction to a forum topic or reply."
    },
    "heart": {
      "type": "token",
      "description": "Love/appreciation reaction."
    },
    "thumbsup": {
      "type": "token",
      "description": "Agreement/thumbs-up reaction."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "A reaction to a forum topic or reply, with configurable reaction types per community."
}
```
