aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/public_timelines.php8
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