From 3ce58a33945fc858ac4f8b2b8471dff0cf294863 Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 13 Jan 2025 22:45:54 +0000 Subject: stuff :3 --- routes/actor.php | 2 ++ routes/note_fragment.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/actor.php b/routes/actor.php index 57bfbc5..a3b69d1 100644 --- a/routes/actor.php +++ b/routes/actor.php @@ -28,6 +28,7 @@ Router::getInstance()->mount('/actor/:id/basicFeed', function (array $args) { json_response([ 'page' => 1, 'totalPages' => 1, + 'totalItems' => count($notes), 'nextPage' => null, 'previousPage' => null, 'items' => array_map(function (Note $note) { @@ -43,6 +44,7 @@ Router::getInstance()->mount('/actor/:id/fullFeed', function (array $args) { json_response([ 'page' => 1, 'totalPages' => 1, + 'totalItems' => count($notes), 'nextPage' => null, 'previousPage' => null, 'items' => $notes diff --git a/routes/note_fragment.php b/routes/note_fragment.php index 83e7655..53fd7af 100644 --- a/routes/note_fragment.php +++ b/routes/note_fragment.php @@ -43,7 +43,7 @@ Router::getInstance()->mount('/fragment/note/:id/reply', function (array $args) $reply->save(); $reply->publish(); } - render_template('reply_form'); + render_template('reply_form', ['note' => $note]); }); Router::getInstance()->mount('/fragment/note', function (array $args) { -- cgit v1.3