Posted by mcarbone on January 16, 2007 at 2:05am
| Project: | Karma |
| Version: | master |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
There is a bug where if a user crosses the minimum karma threshold in either direction, the karma_comment_statistics were not updated for all their comments, even thought some of their comments could reappear or disappear in a node for untrusted users. This led to incorrect comment counts. This patch fixes that problem, and adds a configuration allowing the admin to adjust the max rating from either 3, 4 (default), or 5. This works fine for drop-down lists, but the presentation of the stars option need to be changed to work for a max of 3 or 5.
| Attachment | Size |
|---|---|
| karma.module_0.patch | 10.12 KB |
Comments
#1
Since ratings can now be up to 5, I added more options for 'minimum rating for trusted users,' adding 4.0 and 4.5.
#2
I moved the hook_link comment back and changed a double space after a sentance to a single.
Otherwise, it would be nice to see $orig_karma built into that function so you don't have to think about that when calling it.
#3
$orig_karma built in.
#4