per request from an .nl editor I've made a commentlist per article. This is
[mir.git] / source / mircoders / servlet / ServletModuleOpenIndy.java
index 32ad063..82ac417 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,18 @@ public class ServletModuleOpenIndy extends ServletModule
         }
         else {
           DatabaseContent.getInstance().setUnproduced("id="+aid);
-          MirGlobal.localizer().openPostings().afterCommentPosting();
 
+
+          try {
+            EntityComment comment = (EntityComment) DatabaseComment.getInstance().selectById(id);
+            MirGlobal.localizer().openPostings().afterCommentPosting(comment);
+          }
+          catch (Throwable t) {
+            throw new ServletModuleException(t.getMessage());
+          }
+          
+          
+          
         }
 
         // redirecting to url
@@ -500,11 +511,16 @@ public class ServletModuleOpenIndy extends ServletModule
       contentEnt.update();
 
 
+
       //dereference mp. -mh
       mp=null;
 
-
-      MirGlobal.localizer().openPostings().afterContentPosting();
+      try {
+        MirGlobal.localizer().openPostings().afterContentPosting(contentEnt);
+      }
+      catch (Throwable t) {
+        throw new ServletModuleException(t.getMessage());
+      }
     }
     catch (IOException e) { throw new ServletModuleException("IOException: "+ e.toString());}
     catch (StorageObjectException e) { throw new ServletModuleException("StorageObjectException" + e.toString());}