Index: weblink.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/weblink/weblink.module,v
retrieving revision 1.77
diff -u -F^f -r1.77 weblink.module
--- weblink.module	16 May 2005 19:25:02 -0000	1.77
+++ weblink.module	16 Jun 2005 13:07:45 -0000
@@ -233,4 +233,17 @@ function weblink_goto($lid = NULL, $url 
     drupal_not_found();
   }
 }
-?>
\ No newline at end of file
+
+/**
+ * Add a "(visit)" link to the RSS excerpt if it is a weblink. 
+ */
+function weblink_nodeapi(&$node, $op, $teaser, $page) {
+  switch ($op) {
+    case 'rss item':
+      if ($node->type == 'weblink') {
+        $node->teaser .=  l(t('visit %link', array('%link' => $node->title)), "weblink/goto/$node->lid", array('class' => 'outgoing', 'title' => t('visit %link', array('%link' => $node->url)))) . (user_access("access statistics") ? " ({$node->clicks})" : "");
+      }
+      break;
+  }
+} 
+?>
