Merge branch 'users-statuses-pinia' into weight-removal
This commit is contained in:
commit
0b8ca8aeb0
22 changed files with 126 additions and 83 deletions
|
|
@ -385,10 +385,13 @@ export const parseLinkHeaderPagination = (linkHeader, opts = {}) => {
|
|||
const maxId = parsedLinkHeader.next?.max_id
|
||||
const minId = parsedLinkHeader.prev?.min_id
|
||||
|
||||
return {
|
||||
maxId: flakeId ? maxId : Number.parseInt(maxId, 10),
|
||||
minId: flakeId ? minId : Number.parseInt(minId, 10),
|
||||
}
|
||||
const result = {}
|
||||
if (maxId !== undefined)
|
||||
result.maxId = flakeId ? maxId : Number.parseInt(maxId, 10)
|
||||
if (minId !== undefined)
|
||||
result.minId = flakeId ? minId : Number.parseInt(minId, 10)
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
export const parseChat = (chat) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue