=== modified file 'planet.module'
--- planet.module	2009-03-17 03:26:31 +0000
+++ planet.module	2009-03-17 15:36:02 +0000
@@ -587,27 +587,6 @@
   }
 }
 
-/**
- * Menu callback; displays a Drupal page containing recent planet entries.
- */
-function planet_page($a = NULL, $b = NULL) {
-
-  if (is_numeric($a)) { // $a is a user ID
-    if ($b == 'feed') {
-      return planet_feed_user($a);
-    }
-    else {
-      return planet_page_user($a);
-    }
-  }
-  else if ($a == 'feed') {
-    return planet_feed_last();
-  }
-  else {
-    return planet_page_last();
-  }
-}
-
 function planet_page_user($uid) {
   global $user;
 
@@ -751,14 +730,14 @@
         $entry->format = variable_get('planet_filter_formats', 1);
         $entry->created = $date;
         $entry->revision = true;
-      
-        db_query('INSERT INTO {planet_items} (fid, nid, iid, guid, link, created) VALUES(%d, %d, "%s", "%s", "%s", UNIX_TIMESTAMP(NOW()))', $process_feed->fid, $entry->nid, $iid, $guid, $link);              
-        watchdog('planet', 'Adding '. $title);
-        drupal_set_message('Adding '. $title);
+   
       }  
 
       $node = node_submit($entry);
       node_save($node);
+      db_query('INSERT INTO {planet_items} (fid, nid, iid, guid, link, created) VALUES(%d, %d, "%s", "%s", "%s", UNIX_TIMESTAMP(NOW()))', $process_feed->fid, $node->nid, $iid, $guid, $link);              
+      watchdog('planet', 'Adding '. $title);
+      drupal_set_message('Adding '. $title);
     }
 
     // we unset $item each time to prevent any pass by reference memory leaks that PHP encounters with objects in foreach loops

