From 01c428796f7986fddc0e602656a57ea63055bffd Mon Sep 17 00:00:00 2001
From: Zach Copley <zach@status.net>
Date: Mon, 15 Feb 2010 21:53:49 +0000
Subject: [PATCH] Twitter-bridge: lookup old foreign_user by primary key not
 url

---
 plugins/TwitterBridge/twitter.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/TwitterBridge/twitter.php b/plugins/TwitterBridge/twitter.php
index 2a075300f2..ce989768e6 100644
--- a/plugins/TwitterBridge/twitter.php
+++ b/plugins/TwitterBridge/twitter.php
@@ -35,7 +35,7 @@ function add_twitter_user($twitter_id, $screen_name)
     // repoed, and things like that.
 
     $luser = new Foreign_user();
-    $luser->uri = $new_uri;
+    $luser->id = $twitter_id;
     $luser->service = TWITTER_SERVICE;
     $result = $luser->delete();
 
-- 
2.39.5