# tech.tokimeki.forum.reaction

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

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.forum.reaction)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.forum.reaction/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.forum.reaction/examples)

## Definitions

### `tech.tokimeki.forum.reaction`

**Type**: `record`

An emoji reaction to a message or thread. Written into the reactor's own repo within the space. rkey is derived from the subject URI and the emoji ('r' + base32lower(sha256(uri + '\n' + emoji))[0:26]) so one reactor has at most one record per (subject, emoji).

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `emoji` | `string` | Yes | A single emoji (grapheme cluster). |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | The tech.tokimeki.forum.message or tech.tokimeki.forum.thread being reacted to. |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "tech.tokimeki.forum.reaction",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "emoji",
          "createdAt"
        ],
        "properties": {
          "emoji": {
            "type": "string",
            "maxLength": 64,
            "description": "A single emoji (grapheme cluster).",
            "maxGraphemes": 8
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "The tech.tokimeki.forum.message or tech.tokimeki.forum.thread being reacted to."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "An emoji reaction to a message or thread. Written into the reactor's own repo within the space. rkey is derived from the subject URI and the emoji ('r' + base32lower(sha256(uri + '\\n' + emoji))[0:26]) so one reactor has at most one record per (subject, emoji)."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
