diff options
| author | winter | 2024-12-31 16:25:22 +0000 |
|---|---|---|
| committer | winter | 2024-12-31 16:25:22 +0000 |
| commit | 982e6213622bcb78a40d17f54cda27225a1d84b3 (patch) | |
| tree | 0a81d8fc183238dca959a4ab848c9cd1d241ef27 /routes/public_timelines.php | |
| parent | ad554b48e7dc355d9b33eede98f4e3e829fd867e (diff) | |
rework timelines. inclusion reasons supported now
Diffstat (limited to 'routes/public_timelines.php')
| -rw-r--r-- | routes/public_timelines.php | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
