Commit d8b17c9f authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#156475 by Christoph C. Cemper and greggles: actually call the publish op on...

#156475 by Christoph C. Cemper and greggles: actually call the publish op on hook_comment when a comment is first (automatically) published
parent 327e1c29
......@@ -813,6 +813,9 @@ function comment_save($edit) {
if ($status == COMMENT_NOT_PUBLISHED) {
drupal_set_message(t('Your comment has been queued for moderation by site administrators and will be published after approval.'));
}
else {
comment_invoke_comment($edit, 'publish');
}
return $edit['cid'];
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment