summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-04-11 16:39:19 +0000
committerDries Buytaert <dries@buytaert.net>2005-04-11 16:39:19 +0000
commit9802b20a175e7a04bf8346fdaa7c61714909fb06 (patch)
tree1d21933dafe053729f4e6c6aa9de7b3f1cdad9d8
parentc4d24a48c595d1cec457bfef4579aa87332a61f9 (diff)
downloadbrdo-9802b20a175e7a04bf8346fdaa7c61714909fb06.tar.gz
brdo-9802b20a175e7a04bf8346fdaa7c61714909fb06.tar.bz2
- 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.
-rw-r--r--modules/node.module4
-rw-r--r--modules/node/node.module4
2 files changed, 4 insertions, 4 deletions
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');
diff --git a/modules/node/node.module b/modules/node/node.module
index 59635c700..86009f72c 100644
--- a/modules/node/node.module
+++ b/modules/node/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');