Skip to content

Commit

Permalink
security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyteon committed Jan 12, 2025
1 parent 460f62b commit 3c9231f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/routes/api/v1/channels/[id]/messages/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ export async function PUT({ params, request }) {
return Response.json(
{
...message.toJSON(),
authorId: user.toJSON(),
authorId: {
_id: user._id,
displayName: user.displayName,
pfpUrl: user.pfpUrl,
}
},
{ status: 201 },
);
Expand Down

0 comments on commit 3c9231f

Please sign in to comment.