mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
Removing leftover code that prevented every spam filtered content item from being persisted if spam was configured to be deleted
This commit is contained in:
@@ -22,10 +22,6 @@ namespace Orchard.AntiSpam.Drivers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected override DriverResult Editor(SpamFilterPart part, ContentManagement.IUpdateModel updater, dynamic shapeHelper) {
|
protected override DriverResult Editor(SpamFilterPart part, ContentManagement.IUpdateModel updater, dynamic shapeHelper) {
|
||||||
if (part.Settings.GetModel<SpamFilterPartSettings>().DeleteSpam) {
|
|
||||||
updater.AddModelError("Spam", T("Spam detected."));
|
|
||||||
}
|
|
||||||
|
|
||||||
return Editor(part, shapeHelper);
|
return Editor(part, shapeHelper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user