Proposal: New Custom JSON Standard for Reactions/Emojis

I've been waiting a long time to make this post. 😅

Intro

Basically, what I've done on inji.com is that I combined emojis with upvotes.

image.png

You can set a certain percentage to emojis, which when used as reaction on a post/comment, will also result in an upvote (if enabled).

This makes it (hopefully) super easy to i.e. reward comments on your posts.

Problem

To showcase emojis across frontends though, we need to save this data within in hive and make it accessible via hivemind.

Right now, reactions/emojis can (and are) already written to Hive via Custom JSONS, but there isn't a way to get a list of reactions for a specific post.

For inji, I have to do it quick and dirty and save the votes on Hive posts/comments within the database. Would be much better and cleaner to receive reactions either as a separate Hivemind call or within the post-object.

Possible Solution

{
    id: `reaction`, // example
    requiredPostingAuths: [user], // string - i.e. therealwolf
    json: {
      app, // string
      user, // string
      author, // string
      permlink, // string
      reaction, // string
      emoji, // string - i.e. ❤
      timestamp // date - ie. moment.utc().valueOf(),
    },
    requiredAuths: [],
  }

Example

Transaction: https://hiveblocks.com/tx/709fcfdc9ab66b41af750e0f3ecbe0a0df76277b

{
    required_auths: [],
    required_posting_auths: ['brianoflondon'],
    id: 'reaction',
    {
        "app":"inji/0.0.1-beta",
        "user":"brianoflondon",
        "author":"geekgirl",
        "permlink":"why-do-you-invest-in-hive",
        "reaction":"heart",
        "emoji":"❤",
        "timestamp":1633933468363
    }
}

I named the id reaction, but it could theoretically also be named emoji or something else.

Another question would be whether this should be integrated directly into Hivemind or a HAF specific project.

Looking forward to your feedback!

~Timo

H2
H3
H4
3 columns
2 columns
1 column
13 Comments