It would be good to have a way to anonymize RSS feeds.

See attached patch.

CommentFileSizeAuthor
rss-patch.diff2.43 KBhexmode

Comments

dave reid’s picture

Version: 5.x-dev » 7.x-dev
Status: Needs review » Patch (to be ported)

New features are for the current version only (7.x). Only Drupal 5 and 6 can accept bug fixes.

I can't help but think this is better implemented as a contrib module since we currently don't hide author usernames and dates from nodes without a custom theme. Interesting idea though.

matulis’s picture

As for now, I use hook_nodeapi to anonymize RSS feeds, author name is replaced with website name, but You can unset author name unset($node->name) if You want.

function CUSTOMMODULENAME_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  switch ($op) {
    case 'rss item':
      $node->name = variable_get('site_name', '');
      break;
  }
}
xjm’s picture

Status: Patch (to be ported) » Closed (won't fix)

I think this is probably a won't fix based on Dave Reid's comments and since there's a simple workaround for contrib.