Page MenuHome

A user should not be able to vote on own content

Authored by Dalai Felinto (dfelinto) on Sep 5 2017, 8:19 PM.



This should be hidden in the UI as well, but the backend should support this too.
We also want to set initial rating of 1 for content.

Bonus: I added unittest for this.

Diff Detail

rPS Pillar

Event Timeline

LGTM. It's up to you whether you agree with my one comment or not ;-)


There is no need to return ObjectIDs in the error message. Probably 'You cannot vote on your own node' is better; it seems more user-friendly to me.

This revision is now accepted and ready to land.Sep 6 2017, 10:39 AM
This revision was automatically updated to reflect the committed changes.