From 094b1d010253f1a9a114303d823739e513834742 Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 23 Dec 2024 16:48:58 +0000 Subject: better timeline system --- routes/global_timeline.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'routes') diff --git a/routes/global_timeline.php b/routes/global_timeline.php index 55f64e1..c32419c 100644 --- a/routes/global_timeline.php +++ b/routes/global_timeline.php @@ -1,11 +1,10 @@ mount('/feed/global', function (array $args) { - // this is really rubbish as it doesn't put them in order, doesn't check visibility/indexable, etc - $posts = Note::findAllWhere('deleted = false', []); + $notes = (new GlobalTimeline())->getNotes(); ?> @@ -16,11 +15,11 @@ Router::getInstance()->mount('/feed/global', function (array $args) {
= $p->plainContent ?>
- = $p->created->format('c') ?> + = $n->author->displayName ?> = $n->author->uri ?>= $n->plainContent ?>
+ = $n->created->format('c') ?>