AddonVotes: optimized number of sql queries [closes #127]
Fixed newest nette master version