From 982e6213622bcb78a40d17f54cda27225a1d84b3 Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 31 Dec 2024 16:25:22 +0000 Subject: rework timelines. inclusion reasons supported now --- routes/public_timelines.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'routes') diff --git a/routes/public_timelines.php b/routes/public_timelines.php index 2d40328..b60f141 100644 --- a/routes/public_timelines.php +++ b/routes/public_timelines.php @@ -5,11 +5,11 @@ use Digitigrade\Timeline\GlobalTimeline; use Digitigrade\Timeline\LocalTimeline; Router::getInstance()->mount('/feed/global', function (array $args) { - $notes = (new GlobalTimeline())->getNotes(); - render_template('global_timeline', ['notes' => $notes]); + $items = (new GlobalTimeline())->getPage(); + render_template('timeline', ['kind' => 'global', 'items' => $items]); }); Router::getInstance()->mount('/feed/local', function (array $args) { - $notes = (new LocalTimeline())->getNotes(); - render_template('local_timeline', ['notes' => $notes]); + $items = (new LocalTimeline())->getPage(); + render_template('timeline', ['kind' => 'local', 'items' => $items]); }); \ No newline at end of file -- cgit v1.3