mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Fix timeline order
This commit is contained in:
parent
63b13ca5e8
commit
8c870cdad3
|
|
@ -67,7 +67,7 @@ export default async (
|
|||
include: statusAndUserRelations,
|
||||
take: limit ?? 20,
|
||||
orderBy: {
|
||||
id: "asc",
|
||||
id: "desc",
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ export default async (req: Request): Promise<Response> => {
|
|||
},
|
||||
},
|
||||
orderBy: {
|
||||
id: "asc",
|
||||
id: "desc",
|
||||
},
|
||||
take: limit,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ export default async (
|
|||
},
|
||||
take: limit,
|
||||
orderBy: {
|
||||
id: "asc",
|
||||
id: "desc",
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ export default async (
|
|||
},
|
||||
take: limit,
|
||||
orderBy: {
|
||||
id: "asc",
|
||||
id: "desc",
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -51,18 +51,25 @@ export default async (req: Request): Promise<Response> => {
|
|||
gt: min_id ?? undefined,
|
||||
},
|
||||
author: {
|
||||
relationships: {
|
||||
some: {
|
||||
subjectId: user.id,
|
||||
following: true,
|
||||
OR: [
|
||||
{
|
||||
relationships: {
|
||||
some: {
|
||||
subjectId: user.id,
|
||||
following: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
id: user.id,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
include: statusAndUserRelations,
|
||||
take: limit,
|
||||
orderBy: {
|
||||
id: "asc",
|
||||
id: "desc",
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ export default async (req: Request): Promise<Response> => {
|
|||
include: statusAndUserRelations,
|
||||
take: limit,
|
||||
orderBy: {
|
||||
id: "asc",
|
||||
id: "desc",
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue