Index: discussthis.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/discussthis/discussthis.module,v
retrieving revision 1.3.2.5
diff -u -F^f -r1.3.2.5 discussthis.module
--- discussthis.module  16 Oct 2008 01:50:18 -0000      1.3.2.5
+++ discussthis.module  16 Oct 2008 03:33:19 -0000
@@ -468,7 +468,13 @@ function _discussthis_new_topic($nid) {
   $values = array();
 
   // author and title are determined by the admin settings (but respect the user access permissions)
-  $values['name'] = variable_get('discussthis_author', $user->name);
+  $author_name = variable_get('discussthis_author', $user->name);
+  if ($user->name == $author_name) {
+    $author = $user;
+  } else {
+    $author = user_load(array('name' => $author_name));
+  }
+  $values['name'] = $author->name;
   $values['title'] = token_replace(variable_get('discussthis_newsubject', '[node-title]'), 'discussthis', $node);
 
   $default_body  = 'Following is a discussion on the [node-type-name] item titled: [node-link]'. 
@@ -494,6 +500,12 @@ function _discussthis_new_topic($nid) {
   $newnode['title'] = $values['title'];
   $topic = node_load($newnode);
 
+  // Adjust the node author and taxonomy here..
+  $topic->uid = $author->uid;
+  $topic->tid = $tid;
+  $topic->taxonomy[$tid] = taxonomy_get_term($tid);
+  node_save($topic);
+
   // store the nid -> forum nid mapping in the db
   $sql = 'REPLACE INTO {discussthis} (nid,topic_nid) VALUES (%d,%d)';
   db_query($sql, array($node->nid, $topic->nid));
