]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/public.php
base class is_readonly() now returns false by default
[quix0rs-gnu-social.git] / actions / public.php
index 98e570e80b5b3bc3394e029859263d553e024cb4..d2285fb8fcce57a1896dc9302822e2403ed61ee6 100644 (file)
@@ -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');