summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2026-02-12 19:17:07 -0600
committerRory& <root@rory.gay>2026-02-13 02:24:35 +0100
commitf02d1a7a7611cffa36ed6c339a58c07ecbb5c9cc (patch)
treef6565538decee530022fc3f8076b14b80c702a62 /src/api
parentfix pins (diff)
downloadserver-ts-f02d1a7a7611cffa36ed6c339a58c07ecbb5c9cc.tar.xz
fix it the other way arround
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/channels/#channel_id/pins.ts16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts

index 37021676..899d2d43 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts
@@ -174,7 +174,21 @@ router.get( const pins = await Message.find({ where: { channel_id: channel_id, pinned_at: Not(IsNull()) }, - relations: { author: true }, + relations: { + author: true, + webhook: true, + application: true, + mentions: true, + mention_roles: true, + mention_channels: true, + sticker_items: true, + attachments: true, + thread: { + recipients: { + user: true, + }, + }, + }, order: { pinned_at: "DESC" }, });