--- plugins/FeedsNodeProcessor.inc 2009-12-08 13:37:52.146072254 -0800 +++ plugins/FeedsNodeProcessor.inc.new 2009-12-08 13:37:44.609790980 -0800 @@ -19,6 +19,9 @@ class FeedsNodeProcessor extends FeedsPr // Count number of created and updated nodes. $created = $updated = 0; + // Obtain the owner of the feed node + $feed_node = node_load($source->feed_nid); + foreach ($parserResult->value['items'] as $item) { // If the target item does not exist OR if update_existing is enabled, // map and save. @@ -38,6 +41,9 @@ class FeedsNodeProcessor extends FeedsPr $node->vid = db_result(db_query('SELECT vid FROM {node} WHERE nid = %d', $nid)); } + // Set the owner of the new node to the owner of the feed node before saving + $node->uid = $feed_node->uid; + // Save the node. node_save($node); @@ -343,4 +349,4 @@ function _feeds_node_delete($nid) { } watchdog('content', '@type: deleted %title.', array('@type' => $node->type, '%title' => $node->title)); drupal_set_message(t('@type %title has been deleted.', array('@type' => node_get_types('name', $node), '%title' => $node->title))); -} \ No newline at end of file +}