summaryrefslogtreecommitdiff
path: root/actions/public.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/public.php')
-rw-r--r--actions/public.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/public.php b/actions/public.php
index d92a704a6..270c082ba 100644
--- a/actions/public.php
+++ b/actions/public.php
@@ -48,7 +48,9 @@ class PublicAction extends StreamAction {
$notice = DB_DataObject::factory('notice');
- # XXX: filter out private notifications
+ # FIXME: bad performance
+
+ $notice->whereAdd('EXISTS (SELECT user.id from user where user.id = notice.profile_id)');
$notice->orderBy('created DESC');