From 5f79bcdf51e0cbc17f62c6899207813f26a29214 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 22 Jul 2008 10:20:50 -0400 Subject: public timeline only gets local notices darcs-hash:20080722142050-84dde-b948048b7f85e24c59dc063ef298bcc4c386d33a.gz --- actions/publicrss.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actions/publicrss.php') diff --git a/actions/publicrss.php b/actions/publicrss.php index 621058d3f..185a4ff78 100644 --- a/actions/publicrss.php +++ b/actions/publicrss.php @@ -34,11 +34,11 @@ class PublicrssAction extends Rss10Action { $user = $this->user; $notices = array(); - $notice = DB_DataObject::factory('notice'); + $notice = new Notice(); - # FIXME: bad performance + # XXX: bad performance - $notice->whereAdd('EXISTS (SELECT user.id from user where user.id = notice.profile_id)'); + $notice->is_local = 1; $notice->orderBy('created DESC, notice.id DESC'); -- cgit v1.2.3-54-g00ecf