If you enable the blog module you will get links to Username's blog below EVERY node.
That's because there are some brackets missing in the hook_view.

Drupal 7

if ($node->type == 'blog' && arg(0) != 'blog' || arg(1) != $node->uid) {
  // add links
}

There should be a bracket around the last two parts, as it is currently in the Drupal 6 implementation:

Drupal 6

if ($type == 'node' && $node->type == 'blog') {
  if (arg(0) != 'blog' || arg(1) != $node->uid) {
    //add links
  }
}

The patch adds these brackets.

Screenshot before: we see links on every content type (Article and Blog)
Screenshot after: only links on the Blog content type

CommentFileSizeAuthor
after.png31.38 KBBarisW
before.png33.6 KBBarisW
blog_links.patch810 bytesBarisW
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BarisW’s picture

Status: Active » Needs review

Forgot the status...

Bojhan’s picture

Priority: Critical » Normal

This is not critical, however seems like an obvious fix. Will ask someone to review.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Code looks fine.

I was able to manual reproduce the problem. The patch fixes this problem

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.