Index: realname.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/realname/realname.module,v
retrieving revision 1.4.4.54
diff -u -p -r1.4.4.54 realname.module
--- realname.module	12 May 2009 23:29:57 -0000	1.4.4.54
+++ realname.module	14 May 2009 00:02:17 -0000
@@ -399,7 +399,14 @@ function realname_nodeapi(&$node, $op, $
         $accounts[$node->uid] = realname_get_user($node->uid);
       }
       $account = $accounts[$node->uid];
-      $node->realname = $node->name = $account->name;
+      if (function_exists('_authorship_name_rewrite') && isset($node->authorship)) {
+        // Do not change the username if it has already
+        // been modified by the Authorship module
+        $node->realname = $node->name;
+      }
+      else {
+        $node->realname = $node->name = $account->name;
+      }
       $node->homepage = isset($account->homepage) ? $account->homepage : NULL;
       break;