--- tweet.module	2011-02-25 01:09:54.000000000 -0500
+++ tweet_new.module	2011-04-01 19:48:57.000000000 -0400
@@ -142,6 +142,22 @@ function tweet_to_twitter($site = 'Twitt
 }
 
 /**
+ * Finds all terms from a specific vocabulary that are attached to a specific 
+ * node.
+ *
+ * @param $node
+ *   The node you want to look up terms for.
+ * @param $vid
+ *   The taxonomy vocabulary you want to look up terms for.
+ * @return
+ *   An array of term objects
+ */
+function _taxonomy_node_get_terms_by_vocabulary($node, $vid) {
+  $result = db_query('SELECT t.tid, t.* FROM {taxonomy_term_data} t INNER JOIN {taxonomy_index} r ON r.tid = t.tid WHERE t.vid = :vid AND r.nid = :node_nid ORDER BY weight', array(':vid' => $vid, ':node_nid' => $node->nid));
+  return $result->fetchAll();
+}
+
+/**
  * Creates a link to post a URL and optionally title to twitter.  Uses the
  * current page by default.
  *
@@ -182,7 +198,7 @@ function _tweet_to_twitter($site = 'Twit
       $node = node_load($nid);
       foreach ($node_tag_vocabs as $vid => $enabled) {
         if ($enabled) {
-          $terms = taxonomy_node_get_terms_by_vocabulary($node, $vid);
+          $terms = _taxonomy_node_get_terms_by_vocabulary($node, $vid);
           foreach ($terms as $term) {
             $tags[] = '#' . check_plain($term->name);
           }
