SoylentNews / slashcode

The slashcode repository for SoylentNews. The initial code base was uploaded as it appeared on Sourceforge as of the last commit in September 2009
http://soylentnews.org
GNU General Public License v2.0
44 stars 22 forks source link

Mod updates (some more please) #428

Closed paulej72 closed 9 years ago

paulej72 commented 9 years ago

Merge TMB's and paulej72's undo mod code. My code was based on the undoModeration sub that is used to undo all a users mods in a single discussion. As such it was just a bit cleaner due to using some fancy SQL to get the min and maxes. I made both Unspam and Unmod use the new code and just added a wrapper to call the full undoSingleModeration if only a mod id is given.

plus some other bugs were fixed.