summaryrefslogtreecommitdiff
path: root/classes/Fave.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-02 11:54:02 -0800
committerBrion Vibber <brion@pobox.com>2010-03-02 11:54:02 -0800
commit6b134ae4c7e15ce9853bc82545c3beb67a2dfdad (patch)
treec28f2857d42b6bc97f602fe4c3458a5dd2ca9bc2 /classes/Fave.php
parentf596e072e79ec87541b27008ea2327275e5fc669 (diff)
Dropped deprecated timestamp-based 'since' parameter for all API methods. When it sneaks in it can cause some very slow queries due to mismatches with the indexing.
Twitter removed 'since' support some time ago, and we've already removed it from the public timeline, so it shouldn't be missed.
Diffstat (limited to 'classes/Fave.php')
-rw-r--r--classes/Fave.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/classes/Fave.php b/classes/Fave.php
index 0b6eec2bc..a04f15e9c 100644
--- a/classes/Fave.php
+++ b/classes/Fave.php
@@ -77,7 +77,7 @@ class Fave extends Memcached_DataObject
return $ids;
}
- function _streamDirect($user_id, $own, $offset, $limit, $since_id, $max_id, $since)
+ function _streamDirect($user_id, $own, $offset, $limit, $since_id, $max_id)
{
$fav = new Fave();
$qry = null;
@@ -100,10 +100,6 @@ class Fave extends Memcached_DataObject
$qry .= 'AND notice_id <= ' . $max_id . ' ';
}
- if (!is_null($since)) {
- $qry .= 'AND modified > \'' . date('Y-m-d H:i:s', $since) . '\' ';
- }
-
// NOTE: we sort by fave time, not by notice time!
$qry .= 'ORDER BY modified DESC ';