Index: modules/comment.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/comment.views.inc,v
retrieving revision 1.10
diff -u -p -r1.10 comment.views.inc
--- modules/comment.views.inc	29 Apr 2008 16:31:29 -0000	1.10
+++ modules/comment.views.inc	29 Apr 2008 16:50:07 -0000
@@ -817,6 +817,55 @@ class views_handler_argument_comment_use
   }
 }
 
+/**
+ * Implementation of hook_views_plugins
+ */
+function comment_views_plugins() {
+  return array(
+    'module' => 'views', // This just tells our themes are elsewhere.
+    'row' => array(
+      'comment_rss' => array(
+        'title' => t('Comment'),
+        'help' => t('Display the comment with standard comment feed view.'),
+        'handler' => 'views_plugin_row_comment_rss',
+        'base' => array('comment'), // only works with 'comment' as base.
+        'type' => 'feed',
+      ),
+    ),
+  );
+}
+
+/**
+ * Plugin which formats the comments as RSS items.
+ *
+ * @ingroup views_plugin_rows
+ */
+class views_plugin_row_comment_rss extends views_plugin_row {
+
+  function render($row) {
+    global $base_url;
+
+    if (empty($this->view->style_handler->namespaces)) {
+      $this->view->style_handler->namespaces['xmlns:dc'] = 'http://purl.org/dc/elements/1.1/';
+    }
+    
+    // Load the specified comment:
+    $item = _comment_load($row->cid);
+    $item->link = url('node/' . $item->nid, array('absolute' => TRUE, 'fragment' => 'comment-' . $item->cid));
+
+    $properties = array(
+      array('key' => 'pubDate', 'value' => gmdate('r', $item->timestamp)),
+      array('key' => 'dc:creator', 'value' => $item->name),
+      array(
+        'key' => 'guid',
+        'value' => 'comment ' .  $item->cid . ' at ' . $base_url,
+        'attributes' => array('isPermaLink' => 'false')
+      ),
+    );
+    $item_text = check_markup($item->comment, $item->format, FALSE);
+    return format_rss_item($item->subject, $item->link, $item_text, $properties);
+  }
+}
 
 /**
  * @}
