]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/public.php
better titles in RSS
[quix0rs-gnu-social.git] / actions / public.php
index d92a704a6bc7876423096ecdb6aee7e242e6da69..270c082ba360cb279afb0752ef43f9fc50e47ed9 100644 (file)
@@ -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');