We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 831eaa03 authored by Evan Prodromou's avatar Evan Prodromou

use inboxnoticestream in RSS 1.0

parent 328373e2
......@@ -83,16 +83,9 @@ class AllrssAction extends Rss10Action
*/
function getNotices($limit=0)
{
$cur = common_current_user();
$user = $this->user;
if (!empty($cur) && $cur->id == $user->id) {
$notice = $this->user->noticeInbox(0, $limit);
} else {
$notice = $this->user->noticesWithFriends(0, $limit);
}
$stream = new InboxNoticeStream($this->user);
$notice = $stream->getNotices(0, $limit, null, null);
$notice = $user->noticesWithFriends(0, $limit);
$notices = array();
while ($notice->fetch()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment