mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 22:09:16 +01:00
Fix for misbehaving clients
This commit is contained in:
parent
e72a4e76d6
commit
61723305e5
8 changed files with 10 additions and 10 deletions
|
|
@ -46,7 +46,7 @@ export default apiRoute<{
|
|||
},
|
||||
},
|
||||
include: statusAndUserRelations,
|
||||
take: limit,
|
||||
take: Number(limit),
|
||||
orderBy: {
|
||||
id: "desc",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export default apiRoute<{
|
|||
},
|
||||
},
|
||||
include: userRelations,
|
||||
take: limit,
|
||||
take: Number(limit),
|
||||
orderBy: {
|
||||
id: "desc",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ export default apiRoute<{
|
|||
orderBy: {
|
||||
id: "desc",
|
||||
},
|
||||
take: limit,
|
||||
take: Number(limit),
|
||||
});
|
||||
|
||||
// Constuct HTTP Link header (next and prev)
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export default apiRoute<{
|
|||
},
|
||||
},
|
||||
},
|
||||
take: limit,
|
||||
take: Number(limit),
|
||||
orderBy: {
|
||||
id: "desc",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ export default apiRoute<{
|
|||
include: statusAndUserRelations,
|
||||
},
|
||||
},
|
||||
take: limit,
|
||||
take: Number(limit),
|
||||
orderBy: {
|
||||
id: "desc",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ export default apiRoute<{
|
|||
],
|
||||
},
|
||||
include: statusAndUserRelations,
|
||||
take: limit,
|
||||
take: Number(limit),
|
||||
orderBy: {
|
||||
id: "desc",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export default apiRoute<{
|
|||
: undefined,
|
||||
},
|
||||
include: statusAndUserRelations,
|
||||
take: limit,
|
||||
take: Number(limit),
|
||||
orderBy: {
|
||||
id: "desc",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue