diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-02 11:54:02 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-02 11:54:02 -0800 |
commit | 6b134ae4c7e15ce9853bc82545c3beb67a2dfdad (patch) | |
tree | c28f2857d42b6bc97f602fe4c3458a5dd2ca9bc2 /classes/User_group.php | |
parent | f596e072e79ec87541b27008ea2327275e5fc669 (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/User_group.php')
-rw-r--r-- | classes/User_group.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/classes/User_group.php b/classes/User_group.php index 7240e2703..64fe024b3 100644 --- a/classes/User_group.php +++ b/classes/User_group.php @@ -91,7 +91,7 @@ class User_group extends Memcached_DataObject return Notice::getStreamByIds($ids); } - function _streamDirect($offset, $limit, $since_id, $max_id, $since) + function _streamDirect($offset, $limit, $since_id, $max_id) { $inbox = new Group_inbox(); @@ -108,10 +108,6 @@ class User_group extends Memcached_DataObject $inbox->whereAdd('notice_id <= ' . $max_id); } - if (!is_null($since)) { - $inbox->whereAdd('created > \'' . date('Y-m-d H:i:s', $since) . '\''); - } - $inbox->orderBy('notice_id DESC'); if (!is_null($offset)) { |