Commit 9802b20a authored by Dries's avatar Dries
Browse files

- Patch #20188 by Goba: Node_feed() instructs the nodeapi view call it invokes...

- 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.
parent c4d24a48
......@@ -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');
......
......@@ -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');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment