diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index d43db6ecc..f9586469e 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -179,6 +179,7 @@ router.get( const pins = await Message.find({ where: { channel_id: channel_id, pinned: true }, + relations: ["author"], }); res.send(pins);