summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-04 23:49:52 -0400
committerEvan Prodromou <evan@status.net>2010-09-07 04:00:58 -0400
commite9e06879bb067fd2049c6b4829e9881966a03968 (patch)
tree28f0d618063ebdbb6f7bd20be0ed640b495889a3
parenta1981770ce113d0fa20e5f1b57ddcf3d88177102 (diff)
use Notice_to_status to check for duplicates
-rwxr-xr-xplugins/TwitterBridge/daemons/twitterstatusfetcher.php8
1 files changed, 4 insertions, 4 deletions
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));