Fix timeline order

This commit is contained in:
Jesse Wierzbinski 2023-11-26 12:04:38 -10:00
parent 63b13ca5e8
commit 8c870cdad3
No known key found for this signature in database
6 changed files with 18 additions and 11 deletions

View file

@ -67,7 +67,7 @@ export default async (
include: statusAndUserRelations,
take: limit ?? 20,
orderBy: {
id: "asc",
id: "desc",
},
});

View file

@ -72,7 +72,7 @@ export default async (req: Request): Promise<Response> => {
},
},
orderBy: {
id: "asc",
id: "desc",
},
take: limit,
});

View file

@ -86,7 +86,7 @@ export default async (
},
take: limit,
orderBy: {
id: "asc",
id: "desc",
},
});

View file

@ -87,7 +87,7 @@ export default async (
},
take: limit,
orderBy: {
id: "asc",
id: "desc",
},
});

View file

@ -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",
},
});

View file

@ -62,7 +62,7 @@ export default async (req: Request): Promise<Response> => {
include: statusAndUserRelations,
take: limit,
orderBy: {
id: "asc",
id: "desc",
},
});