summaryrefslogtreecommitdiff
path: root/actions/allrss.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/allrss.php')
-rw-r--r--actions/allrss.php10
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);