forked from GNUsocial/gnu-social
Update Twitter calls to use documented API endpoints
see: http://groups.google.com/group/twitter-api-announce/msg/34b013f4d092737f
This commit is contained in:
@@ -44,7 +44,7 @@ $n->query('SELECT notice.id, notice.uri ' .
|
||||
'AND notice_to_status.status_id IS NULL');
|
||||
|
||||
while ($n->fetch()) {
|
||||
if (preg_match('#^http://twitter.com/[\w_.]+/status/(\d+)$#', $n->uri, $match)) {
|
||||
if (preg_match('/^http://twitter.com(/#!)?/[\w_.]+/status/(\d+)$/', $n->uri, $match)) {
|
||||
$status_id = $match[1];
|
||||
Notice_to_status::saveNew($n->id, $status_id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user