diff options
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'); |