Leave the "updated" field alone when importing comments so that if

Akismet marks them as spam, we don't immediately flush them out of the
database on the next visit to Admin > Content > Comments.

Also warn the user about Akismet, and fix up the G2 import code to
reimport deleted comments.
This commit is contained in:
Bharat Mediratta
2011-05-22 21:24:27 -07:00
parent db734130c5
commit 784ebe7532
2 changed files with 26 additions and 5 deletions
@@ -60,6 +60,11 @@ class Admin_g2_import_Controller extends Admin_Controller {
array("url" => url::site("admin/modules"), "module_id" => $module_id)));
}
}
if (module::is_active("akismet")) {
message::warning(
t("The Akismet module may mark some or all of your imported comments as spam. <a href=\"%url\">Deactivate</a> it to avoid that outcome.",
array("url" => url::site("admin/modules"))));
}
} else if (g2_import::is_configured()) {
$view->content->form->configure_g2_import->embed_path->add_error("invalid", 1);
}