Steem Challenger - Bug Hunting + Bug Fixing

steemchallenger.png

Steem challenger is a project created by omeratagun, one of our supervisor; for the people who posts via utopian, dmania, dlive and many other projects which includes beneficaries to calculate rewards.

Expected behavior

Possible rewards for posts created by users should be calculated.

onursonuc2.png

Actual behavior

Reward for resteemed posts are also calculated.

onur1sonuc.png

How to reproduce

  • Go to http://omeratagun.tk
  • In the field with placeholder "Your username", introduce your username
  • Press enter or the button "Give it to me"
  • Check the username on the results table
  • Resteem one post with high reward (pending one)
  • Go to http://omeratagun.tk
  • In the field with placeholder "Your username", introduce your username
  • Press enter or the button "Give it to me"
  • Check the username on the results table

You will see that there is difference. (Rewards for resteemed posts are also calculated)

How to fix

fixed part.png

 and ($author==$meme)){

should be added to the source code. I also send a pull request to fix the problem. You can find the pull request clicking here.



Posted on Utopian.io - Rewarding Open Source Contributors

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center