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

Commit 52fce18e authored by Evan Prodromou's avatar Evan Prodromou

use threading notice stream wrapper for public

parent ff782f1d
......@@ -88,7 +88,7 @@ class PublicAction extends Action
$this->userProfile = Profile::current();
$stream = new PublicNoticeStream($this->userProfile);
$stream = new ThreadingPublicNoticeStream($this->userProfile);
$this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
NOTICES_PER_PAGE + 1);
......@@ -252,3 +252,11 @@ class PublicAction extends Action
$this->elementEnd('div');
}
}
class ThreadingPublicNoticeStream extends ThreadingNoticeStream
{
function __construct($profile)
{
parent::__construct(new PublicNoticeStream($profile));
}
}
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