Ask Your Question
2

live settings about downvoting karma loss

asked 2012-05-20 11:42:47 -0600

zaf gravatar image

updated 2012-05-20 13:15:49 -0600

On live settings there are two values that affect downvoting:

image description

From what I see there, I would expect that when I downvote a user, this user loses -1 and I lose -2. However this is not true (hopefully - it's not reasonable to lose more than the bad post). In fact, when I downvote a user, he loses -2 and I lose -1 (which now make more sense).

So at the beggining I though the bug was that the captions in live settings have been put the other way round. They are not. I noticed in FAQ page, there is a reference on {{REP_LOSS_FOR_RECEIVING_DOWNVOTE}} that returns -1, like the setting Loss for owner of post that was downvoted.

So, in my opinion there are 2 bugs (maybe minor):

  1. The default values are not reasonable. User that downvotes shouldn't lose more that user that has a bad post. The default values should be the other way round.
  2. The functionality of downvoting uses the two settings the opposite way.

To see what I mean, check this: In file /auth.py, lines 341,354-356:

author.receive_reputation(askbot_settings.REP_LOSS_FOR_DOWNVOTING)
user.receive_reputation(askbot_settings.REP_LOSS_FOR_RECEIVING_DOWNVOTE)

It is clear that author (of the bad post) loses REP_LOSS_FOR_DOWNVOTING and user (the one that noticed the bad post) loses REP_LOSS_FOR_RECEIVING_DOWNVOTE. It should be the other way round, isn't it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-05-20 12:08:13 -0600

Evgeny gravatar image

Fixed in the repo and will be in 0.7.44, hopefully next week.

The rep loss must be the same as gain -10. This bug went unnoticed for 2 years, maybe it shows that downvotes are very infrequent. I am actually thinking of making the downvote button optional.

edit flag offensive delete link more

Comments

So the fixes will include the above mentioned 2 issues, plus a new default value of -10 in one of the settings?

zaf gravatar imagezaf ( 2012-05-20 12:53:43 -0600 )edit

I've just changed the default from -1 to -10, I think that fixes the issues. The downvoter gets -2 and the recipient -10.

Evgeny gravatar imageEvgeny ( 2012-05-20 13:03:38 -0600 )edit

(where did my previous comment go...) @Evgeny check my updated question. I think that if you only change the default value from -1 to -100, then user will lose -10 and author -2, which doesn't seem right, does it?

zaf gravatar imagezaf ( 2012-05-20 13:18:52 -0600 )edit

Thank you for spotting this! Just pushed a fix for this too.

Evgeny gravatar imageEvgeny ( 2012-05-20 13:34:21 -0600 )edit

Ok, thanks for fixing this. I guess you may also want to make default -2 to -1, so that user that downvotes a post, loses 1 point and not 2. Anyway, thanks!

zaf gravatar imagezaf ( 2012-05-20 14:29:20 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-05-20 11:42:47 -0600

Seen: 196 times

Last updated: May 20 '12