Index: realname.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/realname/realname.module,v
retrieving revision 1.4.4.53
diff -u -r1.4.4.53 realname.module
--- realname.module	22 Apr 2009 00:44:47 -0000	1.4.4.53
+++ realname.module	26 Apr 2009 04:16:00 -0000
@@ -399,7 +399,14 @@
         $accounts[$node->uid] = realname_get_user($node->uid);
       }
       $account = $accounts[$node->uid];
-      $node->realname = $node->name = $account->name;
+      if (module_exists('authorship') && 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;
 

