Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi comma separated tag functionality. #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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