Integration of 1UP voting rules

in #utopian-io6 years ago (edited)

image.png

I ve integrated the rules for the 1UP button usage as discussed by @flauwy in here. The merged pull request can be found in here.

The rules


Once the button implemented via SteemPlus, these rules will assure that:

Users cannot upvote themselves


If you check the following example, you can see by looking at the from and url that @steem-plus is trying to vote for one of its posts. Bad bad SteemPlus! Thus, the server returns an error saying :
"You cannot vote for yourself!"

image.png

Users cannot vote more than ten times a day


That is an additional feature that I discussed by DM with @flauwy. For the sake of simplicity during the test I set it to 2 posts maximum, but changed it to 10 before upload. This number will be easily changeable in the future.

image.png

As you can see, after sending more than 2 votes using cURL, the server refused to save my vote and told me to try again tomorrow.

Users cannot vote more than once a day for the same user


Another great rule to prevent abuses. I tested it in a similar manner by sending two cURLs for @stoodkev to vote a @steem-plus contribution. The first time went well, but at the second one:

image.png

As expected, the server rejects my vote.

Other rules


  • The minimum reputation of 45 will be checked directly in the front end since it doesnt make sense to display the button at all if users cannot use it.
  • More rules to be discussed in the future.

Future work


  • Getting SteemConnect to work on the backend for verification purpose only (to make sure that users vote only using the SteemPlus extension)
  • Once user identity is verified, take into account their vote into the post list.
  • Implement the button on SteemPlus for Utopian
  • Adding button information
  • 1UP button for other platforms

One step closer!

@stoodkev



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

i took a peak at steem-plus tag, but can you tell me what it's about really? ty

SteemPlus is the extension I am developing for Chrome Opera and Firefox. You can find out how to install it and all its features in here.

Looks brilliant / I will try out at home / Resteemed / Ty

Hey @wehmoen, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

1UP-Kayrex_tiny.png

You've got a 1UP!

We are building the first automated hivemind voting system with a new voting button where you can give 1UP's to up to ten new contributions each day and receive high curation rewards while following the trail.

1UP for better posts and high curation rewards.


1UP is neither organized nor endorsed by Utopian.io!

I hope to understand this better.

enserio se ve interesante! seguire tus post para estar al dia con este sistema! gracias por esta valiosa informacion

thanks for sharing

Hey @stoodkev I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

wow, it is informative post. :)

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.033
BTC 64303.16
ETH 3137.29
USDT 1.00
SBD 3.97