diff options
author | Zach Copley <zach@status.net> | 2010-03-05 03:14:40 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-03-05 03:14:40 +0000 |
commit | 6a377a4ba409083e05d16b163013f0f09c606170 (patch) | |
tree | adc97101ea783c3c33f4cf916aed6fca4117c56f /plugins/TwitterBridge/twitter.php | |
parent | 029b8c90142e08b0ed44f0528ddea7d4dcc32980 (diff) |
A better way to safely delete Foreign_links
Diffstat (limited to 'plugins/TwitterBridge/twitter.php')
-rw-r--r-- | plugins/TwitterBridge/twitter.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/TwitterBridge/twitter.php b/plugins/TwitterBridge/twitter.php index 42db3c673..508699939 100644 --- a/plugins/TwitterBridge/twitter.php +++ b/plugins/TwitterBridge/twitter.php @@ -264,16 +264,7 @@ function remove_twitter_link($flink) common_log(LOG_INFO, 'Removing Twitter bridge Foreign link for ' . "user $user->nickname (user id: $user->id)."); - $result = false; - - // Be extra careful to make sure we have a good flink - // before deleting - if (!empty($flink->user_id) - && !empty($flink->foreign_id) - && !empty($flink->service)) - { - $result = $flink->delete(); - } + $result = $flink->safeDelete(); if (empty($result)) { common_log(LOG_ERR, 'Could not remove Twitter bridge ' . |