summaryrefslogtreecommitdiff
path: root/modules/moderation.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/moderation.module')
-rw-r--r--modules/moderation.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/moderation.module b/modules/moderation.module
index 5afbf009c..3b84d487c 100644
--- a/modules/moderation.module
+++ b/modules/moderation.module
@@ -33,15 +33,15 @@ function moderation_vote($id, $vote) {
if ($node = node_get_object(nid, $id)) {
if (node_post_threshold($node) <= $node->score) {
- node_save(array(nid => $id, pid => $node->pid, type => $node->type, status => $status[posted]));
+ node_save(array(nid => $id, status => $status[posted]));
watchdog("message", "node: posted '$node->title' - moderation");
}
else if (node_dump_threshold($node) >= $node->score) {
- node_save(array(nid => $id, pid => $node->pid, type => $node->type, status => $status[dumped]));
+ node_save(array(nid => $id, status => $status[dumped]));
watchdog("message", "node: dumped '$node->title' - moderation");
}
else if (node_timout_threshold($node) <= $node->votes) {
- node_save(array(nid => $id, pid => $node->pid, type => $node->type, status => $status[expired]));
+ node_save(array(nid => $id, status => $status[expired]));
watchdog("message", "node: expired '$node->title' - moderation");
}
}