X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpublic.php;h=d2285fb8fcce57a1896dc9302822e2403ed61ee6;hb=7e6870db914d4e905fc7ae833b69404fd3ea0d3d;hp=98e570e80b5b3bc3394e029859263d553e024cb4;hpb=464e70ac5dd85cc55e33c6e1f4a9eed797362a7d;p=quix0rs-gnu-social.git diff --git a/actions/public.php b/actions/public.php index 98e570e80b..d2285fb8fc 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');