Reactions Extension

The Reactions Extension allows users to express their reactions ("react") to posts with emojis.

Federation

User reactions are (like every other entity) federated to all followers, and can be displayed to clients depending on the privacy settings of the associated Note.

Entity Definition

  • Name
    type
    Required
    Required
    Type
    string
    Description

    Must be pub.versia:reactions/Reaction.

  • Name
    author
    Required
    Required
    Type
    Reference
    Description

    Reference to the User that is reacting.

  • Name
    object
    Required
    Required
    Type
    Reference
    Description

    Reference to the Note attached to the reaction.

  • Name
    content
    Required
    Required
    Type
    string
    Description

    Emoji content of reaction. May also be arbitrary text, or Custom Emoji if supported.

    Clients are encouraged to disfavour text in favour of emoji where possible.

Example Entity

{
    "id": "6f27bc77-58ee-4c9b-b804-8cc1c1182fa9",
    "type": "pub.versia:reactions/Reaction", 
    "created_at": "2021-01-01T00:00:00.000Z",
    "author": "6e0204a2-746c-4972-8602-c4f37fc63bbe", 
    "object": "example.com:f08a124e-fe90-439e-8be4-15a428a72a19",
    "content": "😀",
}

Note Collections

The Reactions extension adds the following collections to the Note entity:

  • pub.versia:reactions/Reactions: URI Collection of all the reactions to the note.

Interaction Types

This extension registers the following interaction types:

  • pub.versia:reactions#React, for adding a Reaction to a Note.