You can give Utopian-1UP votes to the best contributions again!

in utopian-io •  7 years ago  (edited)

image.png

This past week, the Utopian bot changed to vote directly after moderation. Since the 1UP button only appeared after moderation and before Utopian vote, it was almost impossible to get a 1UP vote at that time.

To solve this problem, 1UP now fetches every post posted on Utopian.io and make them votable directly from our frontend utopian-1up.com.

New Features

  • We have added a New Tab on the front-end :

image.png

This tab contains all the Utopian posts that fit to our requirements, and new content is refreshed every 10 minutes. For more details about these requirements, please check my last post.

If you login using SteemConnect, you can then vote directly for the contributions you like. Fore more fairness, they are completely shuffled before being displayed using this function :

function shuffle(array) {
  var currentIndex = array.length, temporaryValue, randomIndex;
  // While there remain elements to shuffle...
  while (0 !== currentIndex) {
    // Pick a remaining element...
    randomIndex = Math.floor(Math.random() * currentIndex);
    currentIndex -= 1;
    // And swap it with the current element.
    temporaryValue = array[currentIndex];
    array[currentIndex] = array[randomIndex];
    array[randomIndex] = temporaryValue;
  }
  return array;
}

When you vote for a contribution, it will disappear from the New Tab and appear in the Now Tab with other contributions waiting to be voted by the trail.

To do this, I had to create a new route that would get all the votable contributions from our database and adapt the behavior of the renderer to show these posts.

Future work

  • I will make all these contributions sortable by category
  • I will make another cronjob to delete old posts from the database
  • Since 1UP is available before moderation, I will implement a penalty system to prevent abuse

There is still a lot to do but I'm very happy to announce that 1UP is now usable again!

@stoodkev for @utopian-1up



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  7 years ago 

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @justyy, 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!

Thanks for the great job

Rise the @utopian-1up back again!!! Stoodkev is the best, tickle the rest!

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

Achievements

  • WOW WOW WOW People loved what you did here. GREAT JOB!
  • 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

Great news. Thank you for making it work.
I really appreciate your efforts in the development of this platform. Great work and keep it up.

Yup! love the extension too!