diff --git "a/src/api/routes/channels/\043channel_id/post-data.ts" "b/src/api/routes/channels/\043channel_id/post-data.ts" index f172710..f58a27c 100644 --- "a/src/api/routes/channels/\043channel_id/post-data.ts" +++ "b/src/api/routes/channels/\043channel_id/post-data.ts" @@ -61,7 +61,21 @@ where: { id: In(threads.map(({ id }) => id)), }, - relations: ["author"], + relations: { + author: true, + webhook: true, + application: true, + mentions: true, + mention_roles: true, + mention_channels: true, + sticker_items: true, + attachments: true, + thread: { + recipients: { + user: true, + }, + }, + }, }), Member.find({ where: { @@ -69,6 +83,7 @@ }, }), ]); + await Message.fillReplies(messages); const objRet: { threads: Record } = { threads: {} }; for (const thread of threads) { const owner = members.find(({ id }) => id === thread.owner_id)?.toJSON() || null;