feat(federation): include federation status columns in attachment queries

Both buildDmMessageWithUser and buildMessageWithUser manually map
attachment fields — add federationStatus and federationMeta so they
reach the frontend.
This commit is contained in:
Jannis Braun
2026-03-27 04:40:48 +01:00
parent b99cbea268
commit bfb358c530
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -106,6 +106,8 @@ export function buildDmMessageWithUser(
width: a.width ?? null,
height: a.height ?? null,
duration: a.duration ?? null,
federationStatus: a.federationStatus ?? null,
federationMeta: a.federationMeta ?? null,
createdAt: a.createdAt,
})),
embeds: embedRows.map(e => embedRowToEmbed(e)),
+2
View File
@@ -156,6 +156,8 @@ export function buildMessageWithUser(
width: a.width ?? null,
height: a.height ?? null,
duration: a.duration ?? null,
federationStatus: a.federationStatus ?? null,
federationMeta: a.federationMeta ?? null,
createdAt: a.createdAt,
})),
embeds: embedRows.map(e => embedRowToEmbed(e)),