diff options
author | Evan Prodromou <evan@status.net> | 2010-09-08 16:10:07 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-08 16:10:07 -0400 |
commit | e40ed1fd56bc02dbae20e0839c507911bc27cf4c (patch) | |
tree | 7be79e64cdc5de15dea2fe8f64ba0666f0845507 /plugins/TwitterBridge/TwitterBridgePlugin.php | |
parent | e6c84dec1936a258be6f4d24a4d2e458ac6bbaff (diff) |
move notice_to_status initialization code to run-once script
Diffstat (limited to 'plugins/TwitterBridge/TwitterBridgePlugin.php')
-rw-r--r-- | plugins/TwitterBridge/TwitterBridgePlugin.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/plugins/TwitterBridge/TwitterBridgePlugin.php b/plugins/TwitterBridge/TwitterBridgePlugin.php index 21a10775d..e641c1009 100644 --- a/plugins/TwitterBridge/TwitterBridgePlugin.php +++ b/plugins/TwitterBridge/TwitterBridgePlugin.php @@ -404,27 +404,6 @@ class TwitterBridgePlugin extends Plugin new ColumnDef('created', 'datetime', null, false))); - // We update any notices that may have come in from - // Twitter that we don't have a status_id for. Note that - // this won't catch notices that originated at this StatusNet site. - - $n = new Notice(); - - $n->query('SELECT notice.id, notice.uri ' . - 'FROM notice LEFT JOIN notice_to_status ' . - 'ON notice.id = notice_to_status.notice_id ' . - 'WHERE notice.source = "twitter"' . - 'AND notice_to_status.status_id IS NULL'); - - while ($n->fetch()) { - if (preg_match('#^http://twitter.com/[\w_.]+/status/(\d+)$#', $n->uri, $match)) { - - $status_id = $match[1]; - - Notice_to_status::saveNew($n->id, $status_id); - } - } - return true; } |