Rate module and rule integration I don't fully understand how the rate module integrates with rules.

Here's my situation:

1) I created a widget of the type: Number up / down widget which allow users to vote in nodes of the Answer content type.

2) I created a rule which is fired in the event: User votes on a Node with the condition "Check the value of the vote" is "1"

3) A user "vote up" an Answer and the rule is fired.

So far so good...

The problem:

4) The same user "vote up" the same Answer and the vote is not added because the user only can give just one "vote up" per node, this is how the rate module works and it is all right. The problem is that the rule is fired even when the vote is not added, this is wrong, the rule should be fired only if the node get the vote.

Is this a bug? Do I have to add other condition to the rule?
It is not a bug. User voted up. His vote wasn't counted, but he voted all right. It might be used to update "last voted date" for example, or to give "forgetful" badge to an user who tries to vote many times on the same node. You either need to:


Look for an event that fires when vote is actually saved
Look for a condition that will let you filter out only new votes
Add if in the code that actually gets fired
If first two are not possible and third is to difficult, fill a feature request to add 1. or 2.


I'm deliberately not going to test these and find which one works, in hope future readers can benefit from algorithm for similar problems.