diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-22 12:15:49 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-22 12:15:49 -0400 |
commit | 81e6d50c533964899308e5745745381c340a1764 (patch) | |
tree | 1caaad20518b0786b09fd85f51268945974cf8fa /actions/allrss.php | |
parent | 64ed01f0aff569da2fd4ed589df9ed4ee9852cb7 (diff) |
blow off DB_DataObject joins, write SQL from scratch
darcs-hash:20080722161549-84dde-fedeed101bdef172f4a7aabf2278f1a2277a6d88.gz
Diffstat (limited to 'actions/allrss.php')
-rw-r--r-- | actions/allrss.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/actions/allrss.php b/actions/allrss.php index a64b47641..b6701cfdc 100644 --- a/actions/allrss.php +++ b/actions/allrss.php @@ -43,13 +43,11 @@ class AllrssAction extends Rss10Action { $user = $this->user; - $notice = $user->noticesWithFriends(); + $notice = $user->noticesWithFriends(0, $limit); + + # XXX: revisit constant scope - if ($limit != 0) { - $notice->limit(0, $limit); - } - - $notice->find(); + $cnt = $notice->find(); while ($notice->fetch()) { $notices[] = clone($notice); |