aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/actor.php
diff options
context:
space:
mode:
authorwinter2025-01-13 22:45:54 +0000
committerwinter2025-01-13 22:45:54 +0000
commit3ce58a33945fc858ac4f8b2b8471dff0cf294863 (patch)
treee4b1292475d633979105ceade1f9817ee325169c /routes/actor.php
parentc298fa4d4cc4277c1f7c2a54d9fb98b395b9bc12 (diff)
stuff :3
Diffstat (limited to 'routes/actor.php')
-rw-r--r--routes/actor.php2
1 files changed, 2 insertions, 0 deletions
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