init viewer on federated stream

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/462/head
Maxence Lange 2019-04-22 14:11:34 -01:00
rodzic 0f416c588b
commit 055aa5865a
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -401,6 +401,7 @@ class LocalController extends Controller {
*/
public function streamFederated(int $since = 0, int $limit = 5): DataResponse {
try {
$this->initViewer(true);
$posts = $this->noteService->getStreamGlobalTimeline($since, $limit);
return $this->success($posts);