mirror of
https://github.com/versia-pub/server.git
synced 2025-12-07 16:58:20 +01:00
Fix reblogs
This commit is contained in:
parent
abea3f49c2
commit
9064590292
|
|
@ -79,7 +79,9 @@ export const statusAndUserRelations: Prisma.StatusInclude = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
instance: true,
|
instance: true,
|
||||||
mentions: true,
|
mentions: {
|
||||||
|
include: userRelations,
|
||||||
|
},
|
||||||
pinnedBy: true,
|
pinnedBy: true,
|
||||||
_count: {
|
_count: {
|
||||||
select: {
|
select: {
|
||||||
|
|
|
||||||
|
|
@ -192,6 +192,7 @@ export default async (
|
||||||
return errorResponse("Reply status not found", 404);
|
return errorResponse("Reply status not found", 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @ts-expect-error Prisma Typescript doesn't include relations
|
||||||
replyUser = replyStatus.author;
|
replyUser = replyStatus.author;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue