--- revision_moderation.module	2007-02-20 10:55:18.000000000 -0500
+++ revision_moderation.module	2007-10-05 16:41:56.000000000 -0400
@@ -139,7 +139,9 @@ function revision_moderation_nodeapi(&$n
       // that the current user has available to them.
       $current_vid = db_result(db_query('SELECT vid FROM {node} WHERE nid = %d', $node->nid));
       if ($node->vid != $current_vid) {
-        drupal_set_message(t('You are currently viewing a revision of this post created on @date by @author.', array('@date' => format_date($node->changed, 'small'), '@author' => $node->name)));
+        $current_uid = db_result(db_query('SELECT uid FROM {node_revisions} WHERE vid = %d', $node->vid));
+        $account = user_load(array('uid' => $current_uid));
+        drupal_set_message(t('You are currently viewing a revision of this post created on @date by !author.', array('@date' => format_date($node->changed, 'small'), '!author' => theme('username', $account))));
         if (node_access('update', $node)) {
           drupal_set_message(l(t('Edit revision'), "node/$node->nid/revisions/$node->vid/edit"));
         }
@@ -302,7 +304,9 @@ function revision_moderation_get_node_pe
  */
 function revision_moderation_edit($nid, $vid) {
   $node = node_load($nid, $vid);
-  drupal_set_message(t('You are currently editing a revision of this post created on @date by @author.', array('@date' => format_date($node->changed, 'small'), '@author' => $node->name)));
+  $current_uid = db_result(db_query('SELECT uid FROM {node_revisions} WHERE vid = %d', $node->vid));
+  $account = user_load(array('uid' => $current_uid));
+  drupal_set_message(t('You are currently editing a revision of this post created on @date by !author.', array('@date' => format_date($node->changed, 'small'), '!author' => theme('username', $account))));
   return node_form($node);
 }
 
