From 9802b20a175e7a04bf8346fdaa7c61714909fb06 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 11 Apr 2005 16:39:19 +0000 Subject: - Patch #20188 by Goba: Node_feed() instructs the nodeapi view call it invokes to deal with the body of the node, but afterwards it only uses the teaser to generate the feed. So the nodeapi hook should be called with teaser processing in mind. This simple patch fixes that. --- modules/node.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index 59635c700..86009f72c 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1159,8 +1159,8 @@ function node_feed($nodes = 0, $channel = array()) { $item = node_prepare($item, TRUE); } - // Allow modules to change $node->body before viewing. - node_invoke_nodeapi($item, 'view', false, false); + // Allow modules to change $node->teaser before viewing. + node_invoke_nodeapi($item, 'view', true, false); // Allow modules to add additional item fields $extra = node_invoke_nodeapi($item, 'rss item'); -- cgit v1.2.3