Skip to content

Allow a different format for votes in 'bridge' API response

When there's a really small vote (0 rshares) it's not possible for frontends to know if it's a very small vote or a vote removed. Also there are a few other problems that can probably be solved changing the API response format a little bit.

My personal preference on this would be to allow a different format in the API response using an additional parameter.

Current format:

active_votes: [{rshares: 0, voter: "meowcurator"}]

New possible format:

active_votes: [{perc: 100, voter: "meowcurator"}]

I know that the rshares is really important to know how much a specific vote contributed to the post payout, but I think it's not commonly required and can be retrieved with the get_active_votes call whenever a popup is opened or required. As soon as you open the post or right in the feeds the important things to know are:

  • Who voted on the post
  • If it is an upvote or a downvote
  • Also the network payload will be smaller (and this is the original reason to remove the perc from the response)
  • And it will solve the above issue reported by @rishi556
Edited by Sergio