diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-22 10:20:50 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-22 10:20:50 -0400 |
commit | 5f79bcdf51e0cbc17f62c6899207813f26a29214 (patch) | |
tree | f476596fa45958f73a7ea83e665ff1f1b14fe0f2 /actions/public.php | |
parent | b1282b1b9fd9997d15f127810f98117e01b72daa (diff) |
public timeline only gets local notices
darcs-hash:20080722142050-84dde-b948048b7f85e24c59dc063ef298bcc4c386d33a.gz
Diffstat (limited to 'actions/public.php')
-rw-r--r-- | actions/public.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/public.php b/actions/public.php index 98e570e80..d2285fb8f 100644 --- a/actions/public.php +++ b/actions/public.php @@ -59,11 +59,11 @@ class PublicAction extends StreamAction { function show_notices($page) { - $notice = DB_DataObject::factory('notice'); + $notice = new Notice(); - # FIXME: bad performance + # XXX: sub-optimal - $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'); |