summaryrefslogtreecommitdiff
path: root/modules/blog
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-03 10:11:35 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-03 10:11:35 +0000
commita8c30ed91ea00e24f809adc965b05f8292fbc236 (patch)
tree386db65fe5377df5373bf3e2a2b30bf1112a5fc7 /modules/blog
parent3d951475eaebab990a78d07acdc344eb50239e18 (diff)
downloadbrdo-a8c30ed91ea00e24f809adc965b05f8292fbc236.tar.gz
brdo-a8c30ed91ea00e24f809adc965b05f8292fbc236.tar.bz2
- Patch #449718 by alienbrain: node_feed() is now using new node building API.
Diffstat (limited to 'modules/blog')
-rw-r--r--modules/blog/blog.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 884372f02..b5ac2cae9 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -97,8 +97,8 @@ function blog_view($node, $teaser) {
* Implementation of hook_node_view.
*/
function blog_node_view($node, $teaser = FALSE) {
- if ($node->type == 'blog') {
- if (arg(0) != 'blog' || arg(1) != $node->uid) {
+ if ($node->build_mode != NODE_BUILD_RSS) {
+ if ($node->type == 'blog' && arg(0) != 'blog' || arg(1) != $node->uid) {
$links['blog_usernames_blog'] = array(
'title' => t("!username's blog", array('!username' => $node->name)),
'href' => "blog/$node->uid",