aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes
diff options
context:
space:
mode:
authorwinter2024-12-23 19:48:28 +0000
committerwinter2024-12-23 19:48:28 +0000
commit505d25e29f1c13403bfbfe7cd9d1ab125be87a4b (patch)
tree1f2e914b3aacd57defb84acf78a871ad1f896927 /routes
parentbccad1118364427ea5c97c08d132fd128368760b (diff)
make the timelines look nicer and add local tl
Diffstat (limited to 'routes')
-rw-r--r--routes/public_timelines.php (renamed from routes/global_timeline.php)6
1 files changed, 6 insertions, 0 deletions
diff --git a/routes/global_timeline.php b/routes/public_timelines.php
index 654d2c7..2d40328 100644
--- a/routes/global_timeline.php
+++ b/routes/public_timelines.php
@@ -2,8 +2,14 @@
use Digitigrade\Router;
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]);
+});
+
+Router::getInstance()->mount('/feed/local', function (array $args) {
+ $notes = (new LocalTimeline())->getNotes();
+ render_template('local_timeline', ['notes' => $notes]);
}); \ No newline at end of file