roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r596533 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/xmlrpc/MetaWeblogAPIHandler.java
Date Tue, 20 Nov 2007 03:53:20 GMT
Author: snoopdave
Date: Mon Nov 19 19:53:19 2007
New Revision: 596533

URL: http://svn.apache.org/viewvc?rev=596533&view=rev
Log:
Fix for ROL-1609
"Default plugins not applied with post created via MetaWeblog API"

Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/xmlrpc/MetaWeblogAPIHandler.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/xmlrpc/MetaWeblogAPIHandler.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/xmlrpc/MetaWeblogAPIHandler.java?rev=596533&r1=596532&r2=596533&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/xmlrpc/MetaWeblogAPIHandler.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/xmlrpc/MetaWeblogAPIHandler.java
Mon Nov 19 19:53:19 2007
@@ -237,8 +237,7 @@
             Weblogger roller = WebloggerFactory.getWeblogger();
             WeblogManager weblogMgr = roller.getWeblogManager();
             User user = roller.getUserManager().getUserByUserName(userid);
-            Timestamp current =
-                    new Timestamp(System.currentTimeMillis());
+            Timestamp current = new Timestamp(System.currentTimeMillis());
             
             WeblogEntry entry = new WeblogEntry();
             entry.setTitle(title);
@@ -249,6 +248,13 @@
             entry.setWebsite(website);
             entry.setCreator(user);
             entry.setCommentDays(new Integer(website.getDefaultCommentDays()));
+            entry.setAllowComments(website.getDefaultAllowComments());
+        
+            // apply weblog default plugins
+            if (website.getDefaultPlugins() != null) {
+                entry.setPlugins(website.getDefaultPlugins());
+            }
+            
             if (Boolean.valueOf(publish).booleanValue()) {
                 entry.setStatus(WeblogEntry.PUBLISHED);
             } else {



Mime
View raw message