Limit the Karma modification per user, per day
kitallis - May 29, 2009 - 18:26
| Project: | Bot |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | kitallis |
| Status: | active |
Jump to:
Description
I use this bot a lot on a channel. No limit to the fact that anyone can modify the Karma of an object any number of times is something of a bug. As users changing and spamming Karma object without limit is highly probable and that makes the concept of a Karma object, useless.
I'm including a patch, that fixes the problem by limiting the Karma modification of a term only once per 24 hrs per user. Please consider including it in the next release of bot.module and making further improvements in this patch.
| Attachment | Size |
|---|---|
| karma-spam-fix.patch | 4.16 KB |

#1
The threshold should be variable. I think this can be implemented in better way. If you are curious, check how contact.module manages threshold.