From e9e06879bb067fd2049c6b4829e9881966a03968 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 4 Sep 2010 23:49:52 -0400 Subject: use Notice_to_status to check for duplicates --- plugins/TwitterBridge/daemons/twitterstatusfetcher.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/TwitterBridge/daemons') diff --git a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php index ae66c50ae..027e572b0 100755 --- a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php +++ b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php @@ -247,15 +247,15 @@ class TwitterStatusFetcher extends ParallelizingDaemon // check to see if we've already imported the status - $dupe = $this->checkDupe($profile, $statusUri); + $n2s = Notice_to_status::staticGet('status_id', $status->id); - if (!empty($dupe)) { + if (!empty($n2s)) { common_log( LOG_INFO, $this->name() . - " - Ignoring duplicate import: $statusUri" + " - Ignoring duplicate import: {$status->id}" ); - return $dupe; + return Notice::staticGet('id', $n2s->notice_id); } common_debug("Saving status {$status->id} with data " . print_r($status, true)); -- cgit v1.2.3-54-g00ecf