X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpublicrss.php;h=185a4ff785f192c90202a70f0680485579df0256;hb=37c5e8ca3c2d77fc3e1836fd76d7462e33f1668e;hp=0916da00913062c8a03d881c12f92631fbc02558;hpb=87b494f1ebbe7640d194ef322af12fdf378295df;p=quix0rs-gnu-social.git diff --git a/actions/publicrss.php b/actions/publicrss.php index 0916da0091..185a4ff785 100644 --- a/actions/publicrss.php +++ b/actions/publicrss.php @@ -34,13 +34,13 @@ class PublicrssAction extends Rss10Action { $user = $this->user; $notices = array(); - $notice = DB_DataObject::factory('notice'); + $notice = new Notice(); - # FIXME: bad performance + # XXX: bad performance - $notice->whereAdd('EXISTS (SELECT user.id from user where user.id = notice.profile_id)'); + $notice->is_local = 1; - $notice->orderBy('created DESC'); + $notice->orderBy('created DESC, notice.id DESC'); if ($limit != 0) { $notice->limit(0, $limit);