entered some unwanted posting protection for indymedia.nl. Extended the localization...
[mir.git] / source / mircoders / servlet / ServletModuleOpenIndy.java
index 32ad063..4d275ce 100755 (executable)
@@ -44,6 +44,7 @@ public class ServletModuleOpenIndy extends ServletModule
   private String        postingFormTemplate, postingFormDoneTemplate,
                         postingFormDupeTemplate;
   private ModuleContent contentModule;
+  private ModuleComment commentModule;
   private ModuleImages  imageModule;
   private ModuleTopics  themenModule;
   private String        directOp ="yes";
@@ -157,8 +158,11 @@ public class ServletModuleOpenIndy extends ServletModule
         }
         else {
           DatabaseContent.getInstance().setUnproduced("id="+aid);
-          MirGlobal.localizer().openPostings().afterCommentPosting();
-
+          
+          EntityComment comment = (EntityComment) DatabaseComment.getInstance().selectById(id);
+          
+          MirGlobal.localizer().openPostings().afterCommentPosting(comment);
+          
         }
 
         // redirecting to url
@@ -499,12 +503,13 @@ public class ServletModuleOpenIndy extends ServletModule
       contentEnt.setValueForProperty("is_published","1");
       contentEnt.update();
 
+      MirGlobal.localizer().openPostings().afterContentPosting(contentEnt);
+
 
       //dereference mp. -mh
       mp=null;
 
 
-      MirGlobal.localizer().openPostings().afterContentPosting();
     }
     catch (IOException e) { throw new ServletModuleException("IOException: "+ e.toString());}
     catch (StorageObjectException e) { throw new ServletModuleException("StorageObjectException" + e.toString());}