BUG does not give best answer rep

3.40K viewsUpdates


I, admin, select an answer of a person B as “selected”. I was supposed to get +selecting_answer, but it’s B who received it. I received nothing. Noone received +select_answer (best_answer).

“best_answer” reputation is never getting assigned. It checks “if ( $answer->post_author != $userid )”, but from ajax it’s getting called as userid=answer->post_author, this is always false.

Should probably be called with current_user_id instead of post->author.

Last actions on post are logged as person B as well. Even though it’s me who was selecting and unselecting best answer.


Dima, Thanks for letting us know. I will check the bug and push a fix soon.