summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/public.php4
-rw-r--r--actions/publicrss.php4
2 files changed, 7 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');
diff --git a/actions/publicrss.php b/actions/publicrss.php
index 0cf572dbe..93314ee32 100644
--- a/actions/publicrss.php
+++ b/actions/publicrss.php
@@ -35,6 +35,10 @@ class PublicrssAction extends Rss10Action {
$notices = array();
$notice = DB_DataObject::factory('notice');
+
+ # FIXME: bad performance
+
+ $notice->whereAdd('EXISTS (SELECT user.id from user where user.id = notice.profile_id)');
$notice->orderBy('created DESC');