Fix reblogs

This commit is contained in:
Jesse Wierzbinski 2023-11-28 13:16:22 -10:00
parent abea3f49c2
commit 9064590292
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View file

@ -79,7 +79,9 @@ export const statusAndUserRelations: Prisma.StatusInclude = {
},
},
instance: true,
mentions: true,
mentions: {
include: userRelations,
},
pinnedBy: true,
_count: {
select: {

View file

@ -192,6 +192,7 @@ export default async (
return errorResponse("Reply status not found", 404);
}
// @ts-expect-error Prisma Typescript doesn't include relations
replyUser = replyStatus.author;
}