diff -r 60b8281442b8 -r 9cabcd2709be tweetcast/nodejs/node-direct.js --- a/tweetcast/nodejs/node-direct.js Wed Nov 02 17:13:23 2011 +0100 +++ b/tweetcast/nodejs/node-direct.js Fri Nov 04 16:11:51 2011 +0100 @@ -66,7 +66,7 @@ } function commitReference(from_id, to_id, ref_type) { - commit_script += 'INSERT INTO tweet_refs ( from_id, to_id, ref_type ) VALUES ( "' + from_id + '", "' + to_id + '", "' + ref_type + '" );\n'; + commit_script += 'INSERT OR IGNORE INTO tweet_refs ( from_id, to_id, ref_type ) VALUES ( "' + from_id + '", "' + to_id + '", "' + ref_type + '" );\n'; } function commitTweet(data) {