Skip to content

Conversation

@brishtiteveja
Copy link
Collaborator

Multi tag functionality. User can submit comma separated tags. For each tag, the total vote will be distributed equally. Only the first tag will get the extra vote amount. The change haven't extensively tested yet, should be tested on testnet first.

                   Example:
                    content.votes[i].tag = "hike, hiking, hiker"
                    totalTagVt = 313
                    nt = 3

                    topTags[0] = {tag: "hike", vt: 313/3 + 313%3 = 104 + 1 = 105} // hike

                    totalTagVt = 313 - (313%3) = 313 - 1 = 312

                    topTags[1] = {tag: "hiking", vt: 312/3 + 312%3 = 104} // hiking

                    topTags[2] = {tag: "hiker", vt: 312/3 + 312%3 = 104} // hiker

                    105 + 104 + 104 = 313 total

@techcoderx
Copy link
Collaborator

This will have to be a soft-fork that only API node operators need to decide. Also I think it should only apply to first vote by author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants