create account

Proposal: New Custom JSON Standard for Reactions/Emojis by therealwolf

View this thread on: hive.blogpeakd.comecency.com
· @therealwolf ·
$43.97
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](https://inji.com) is that I combined emojis with upvotes.


![image.png](https://files.peakd.com/file/peakd-hive/therealwolf/23t79QNeNnHFdt8oi8qxW8gKLjWeNQiUH1z6XuhDWfsRk15fJAKjMwQ67a3FjbX3ETxuH.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
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 212 others
properties (23)
authortherealwolf
permlinkproposal-new-custom-json-standard-for-reactionsemojis
categoryhive-102930
json_metadata{"app":"peakd/2021.09.1","format":"markdown","tags":["hive","inji","dev"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/therealwolf/23t79QNeNnHFdt8oi8qxW8gKLjWeNQiUH1z6XuhDWfsRk15fJAKjMwQ67a3FjbX3ETxuH.png"]}
created2021-10-11 07:44:51
last_update2021-10-11 07:44:51
depth0
children14
last_payout2021-10-18 07:44:51
cashout_time1969-12-31 23:59:59
total_payout_value22.039 HBD
curator_payout_value21.931 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,039
author_reputation558,480,608,877,321
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,947,095
net_rshares41,227,687,747,798
author_curate_reward""
vote details (276)
@ebingo ·
$0.03
This all looks like Hive engine stuff that I'm typically scared to mess with.

With your help I hope to successfully mess with it.

From what i understand I'll go to inji.com right?
πŸ‘  
properties (23)
authorebingo
permlinkre-therealwolf-r0t04g
categoryhive-102930
json_metadata{"tags":["hive-102930"],"app":"peakd/2021.09.1"}
created2021-10-11 08:12:18
last_update2021-10-11 08:12:18
depth1
children0
last_payout2021-10-18 08:12:18
cashout_time1969-12-31 23:59:59
total_payout_value0.016 HBD
curator_payout_value0.016 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length181
author_reputation177,866,031,919,791
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,947,567
net_rshares31,963,664,445
author_curate_reward""
vote details (1)
@forykw · (edited)
I 100% approve this one. πŸ˜€

πŸ§¨πŸŽ‡πŸŽ‰βœ¨πŸŽ†πŸŽŠπŸŽ‰πŸ§¨πŸŽ†

Question... why the two fields?

>         "reaction":"heart",
>         "emoji":"❀",

Is it supposed for one to be the encoded format and the other the emoji reference metadata?
properties (22)
authorforykw
permlinkre-therealwolf-20211016t1472965z
categoryhive-102930
json_metadata{"tags":["hive","inji","dev"],"app":"ecency/3.0.19-vision","format":"markdown+html"}
created2021-10-15 12:47:12
last_update2021-10-15 12:50:54
depth1
children0
last_payout2021-10-22 12:47:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length217
author_reputation71,305,228,064,328
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,050,984
net_rshares0
@imwatsi ·
$0.39
Nice. I will make a plug to parse the `custom_json` ops and make data available via endpoints on HAF Plug & Play.
πŸ‘  
properties (23)
authorimwatsi
permlinkr0x8ih
categoryhive-102930
json_metadata{"app":"hiveblog/0.1"}
created2021-10-13 15:04:06
last_update2021-10-13 15:04:06
depth1
children0
last_payout2021-10-20 15:04:06
cashout_time1969-12-31 23:59:59
total_payout_value0.195 HBD
curator_payout_value0.195 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length113
author_reputation131,386,362,730,495
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,007,184
net_rshares372,621,464,676
author_curate_reward""
vote details (1)
@leprechaun ·
I wonder if you can do this kind of thing somehow with the follow, command.  Right now, you can pass ["blog"] or [].  Why is it an array instead of a boolean unless you can put other things like ["reactions", "blog"]?
properties (22)
authorleprechaun
permlinkre-therealwolf-2022525t16225935z
categoryhive-102930
json_metadata{"tags":["hive","inji","dev"],"app":"proofofbrain.blog/3.0.18","format":"markdown+html"}
created2022-05-25 19:02:27
last_update2022-05-25 19:02:27
depth1
children0
last_payout2022-06-01 19:02:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length217
author_reputation36,778,764,966,701
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id113,509,737
net_rshares0
@manniman ·
Feels good, makes sense. So I guess you also write into a local DB and select from there β€šper postβ€˜? The Reaction by smily approach makes way more sense for me as well. I mostly spray 5%,11% and 22% with fast clicks and manually crank up to 50-100% votes sometimes.
πŸ‘Ž  
properties (23)
authormanniman
permlinkre-therealwolf-r0t288
categoryhive-102930
json_metadata{"tags":["hive-102930"],"app":"peakd/2021.09.1"}
created2021-10-11 08:57:45
last_update2021-10-11 08:57:45
depth1
children0
last_payout2021-10-18 08:57:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length265
author_reputation78,497,888,894,033
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,948,286
net_rshares0
author_curate_reward""
vote details (1)
@maxwellnewlife7 ·
Good job @therealwolf I will give it a trial
πŸ‘Ž  
properties (23)
authormaxwellnewlife7
permlinkr0t21e
categoryhive-102930
json_metadata{"users":["therealwolf"],"app":"hiveblog/0.1"}
created2021-10-11 08:53:45
last_update2021-10-11 08:53:45
depth1
children0
last_payout2021-10-18 08:53:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length44
author_reputation82,265,931,451
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,948,210
net_rshares-6,987,494,705
author_curate_reward""
vote details (1)
@melbourneswest ·
I think using emojis are cool but not sure about having them for certain % votes. I might get confused unless it is auto. Plus I am a manual voter so not sure how it will impact my voting ability 
properties (22)
authormelbourneswest
permlinkre-therealwolf-r0t3k7
categoryhive-102930
json_metadata{"tags":["hive-102930"],"app":"peakd/2021.09.1"}
created2021-10-11 09:26:30
last_update2021-10-11 09:26:30
depth1
children0
last_payout2021-10-18 09:26:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length196
author_reputation605,980,352,925,153
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,949,057
net_rshares0
@rishi556 ·
Is there any reason to add timestamp to the custom json since that info is provided on the block itself? Also seems like something nice that might be possible with HAF(I think moving more stuff from Hivemind to that would be nice, as it would mean I can keep track of only what I want instead of all of Hivemind, a problem I am dealing with right now). Thought about this in the past and seeing others have the same idea is awesome.
πŸ‘  
properties (23)
authorrishi556
permlinkre-therealwolf-r0tsq7
categoryhive-102930
json_metadata{"tags":["hive-102930"],"app":"peakd/2021.09.1"}
created2021-10-11 18:30:09
last_update2021-10-11 18:30:09
depth1
children1
last_payout2021-10-18 18:30:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length432
author_reputation111,982,053,527,065
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,960,201
net_rshares17,061,031,954
author_curate_reward""
vote details (1)
@therealwolf ·
re: re-therealwolf-r0tsq7
Good point. No, timestamp shouldn't be needed in that case.
properties (22)
authortherealwolf
permlink1211b5b6-b83c-487d-bdb6-b24a2abd2828
categoryhive-102930
json_metadata{"type":"inji/comment","origType":"inji/comment","tags":["hive-123456","hive-102930","inji"],"format":"markdown","app":"inji/0.0.1-beta","origApp":"inji/0.0.1-beta","inji":{"hash":"b6b31a1c867d6025c340af30cf9e77936889bd87c75ddd0d9d954f716c17f9f3","url":"https://inji.com/ref/1211b5b6-b83c-487d-bdb6-b24a2abd2828","permlink":"1211b5b6-b83c-487d-bdb6-b24a2abd2828","userId":"ckrkeya7r000078jvartg0tg5"}}
created2021-10-11 20:23:24
last_update2021-10-11 20:23:24
depth2
children0
last_payout2021-10-18 20:23:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length59
author_reputation558,480,608,877,321
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,962,508
net_rshares0
@stayoutoftherz ·
$0.13
I would not want that a certain emoji which I can´t influence is associated with a specific %upvote number. I curate manually according to the amount of work and a post of  a pic with a few lines gets a much less %age than a 1000 word article, yet both can be ❀️.
πŸ‘  , ,
properties (23)
authorstayoutoftherz
permlinkre-therealwolf-20211011t101355262z
categoryhive-102930
json_metadata{"tags":["hive","inji","dev"],"app":"ecency/3.0.19-vision","format":"markdown+html"}
created2021-10-11 08:13:54
last_update2021-10-11 08:13:54
depth1
children2
last_payout2021-10-18 08:13:54
cashout_time1969-12-31 23:59:59
total_payout_value0.067 HBD
curator_payout_value0.066 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length263
author_reputation955,565,606,641,435
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,947,578
net_rshares127,199,067,876
author_curate_reward""
vote details (3)
@alterna ·
Think of it as a vote on which type of reactions the post generated
properties (22)
authoralterna
permlinkre-stayoutoftherz-20211116t11931200z
categoryhive-102930
json_metadata{"tags":["hive","inji","dev"],"app":"ecency/3.0.19-vision","format":"markdown+html"}
created2021-11-16 11:09:30
last_update2021-11-16 11:09:30
depth2
children0
last_payout2021-11-23 11:09:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length67
author_reputation32,437,761,571
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,783,730
net_rshares0
@xplosive · (edited)
RE: Proposal: New Custom JSON Standard for Reactions/Emojis
I completely agree. The length of the posts should not matter. And it does not matter on traditional social networks, for example Facebook, Twitter, YouTube. Facebook is full of short posts. People rarely write long posts. And on YouTube, the short, mostly funny videos on YouTube are often more successful than the longer videos. Many people love short videos.
properties (22)
authorxplosive
permlinkre-stayoutoftherz-20211011t14444456z
categoryhive-102930
json_metadata{"tags":["hive","inji","dev"],"app":"ecency/3.0.23-mobile","format":"markdown+html"}
created2021-10-11 12:04:45
last_update2021-10-11 12:07:09
depth2
children0
last_payout2021-10-18 12:04:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length361
author_reputation172,033,025,692,763
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,952,051
net_rshares0
@themarkymark ·
$0.38
This was on the roadmap during the communities rollout, but never happened.  
πŸ‘  , ,
πŸ‘Ž  
properties (23)
authorthemarkymark
permlinkre-therealwolf-r0t4g8
categoryhive-102930
json_metadata{"tags":["hive-102930"],"app":"peakd/2021.09.1"}
created2021-10-11 09:45:45
last_update2021-10-11 09:45:45
depth1
children1
last_payout2021-10-18 09:45:45
cashout_time1969-12-31 23:59:59
total_payout_value0.192 HBD
curator_payout_value0.191 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length77
author_reputation1,669,674,101,436,610
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,949,552
net_rshares358,223,002,972
author_curate_reward""
vote details (4)
@urun ·
i think we should have a ton of emojis on hive. Simple because they can be NFts at one time.

Could be really cool.

Every community with own NFT emojis sounds really "want it".
properties (22)
authorurun
permlinkre-themarkymark-r0tn0v
categoryhive-102930
json_metadata{"tags":["hive-102930"],"app":"peakd/2021.09.1"}
created2021-10-11 16:26:54
last_update2021-10-11 16:26:54
depth2
children0
last_payout2021-10-18 16:26:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length177
author_reputation93,309,389,073,611
root_title"Proposal: New Custom JSON Standard for Reactions/Emojis"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,957,676
net_rshares0