mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 22:09:16 +01:00
Typo
This commit is contained in:
parent
e26d604a54
commit
58613c958c
1 changed files with 13 additions and 4 deletions
|
|
@ -52,10 +52,19 @@ export default apiRoute(async (req, matchedRoute, extraData) => {
|
||||||
total_items: totalStatuses,
|
total_items: totalStatuses,
|
||||||
// Server actor
|
// Server actor
|
||||||
author: new URL("/users/actor", config.http.base_url).toString(),
|
author: new URL("/users/actor", config.http.base_url).toString(),
|
||||||
next: statuses.length === 20
|
next:
|
||||||
? new URL(`/users/${uuid}/outbox?page=${pageNumber + 1}`, config.http.base_url).toString(),
|
statuses.length === 20
|
||||||
prev: pageNumber > 1
|
? new URL(
|
||||||
? new URL(`/users/${uuid}/outbox?page=${pageNumber - 1}`, config.http.base_url).toString()
|
`/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,
|
: undefined,
|
||||||
items: statuses.map((s) => statusToLysand(s)),
|
items: statuses.map((s) => statusToLysand(s)),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue