mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Typo
This commit is contained in:
parent
e26d604a54
commit
58613c958c
|
|
@ -52,10 +52,19 @@ export default apiRoute(async (req, matchedRoute, extraData) => {
|
|||
total_items: totalStatuses,
|
||||
// Server actor
|
||||
author: new URL("/users/actor", config.http.base_url).toString(),
|
||||
next: statuses.length === 20
|
||||
? new URL(`/users/${uuid}/outbox?page=${pageNumber + 1}`, config.http.base_url).toString(),
|
||||
prev: pageNumber > 1
|
||||
? new URL(`/users/${uuid}/outbox?page=${pageNumber - 1}`, config.http.base_url).toString()
|
||||
next:
|
||||
statuses.length === 20
|
||||
? new URL(
|
||||
`/users/${uuid}/outbox?page=${pageNumber + 1}`,
|
||||
config.http.base_url,
|
||||
).toString()
|
||||
: undefined,
|
||||
prev:
|
||||
pageNumber > 1
|
||||
? new URL(
|
||||
`/users/${uuid}/outbox?page=${pageNumber - 1}`,
|
||||
config.http.base_url,
|
||||
).toString()
|
||||
: undefined,
|
||||
items: statuses.map((s) => statusToLysand(s)),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue