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:
@@ -106,6 +106,8 @@ export function buildDmMessageWithUser(
|
|||||||
width: a.width ?? null,
|
width: a.width ?? null,
|
||||||
height: a.height ?? null,
|
height: a.height ?? null,
|
||||||
duration: a.duration ?? null,
|
duration: a.duration ?? null,
|
||||||
|
federationStatus: a.federationStatus ?? null,
|
||||||
|
federationMeta: a.federationMeta ?? null,
|
||||||
createdAt: a.createdAt,
|
createdAt: a.createdAt,
|
||||||
})),
|
})),
|
||||||
embeds: embedRows.map(e => embedRowToEmbed(e)),
|
embeds: embedRows.map(e => embedRowToEmbed(e)),
|
||||||
|
|||||||
@@ -156,6 +156,8 @@ export function buildMessageWithUser(
|
|||||||
width: a.width ?? null,
|
width: a.width ?? null,
|
||||||
height: a.height ?? null,
|
height: a.height ?? null,
|
||||||
duration: a.duration ?? null,
|
duration: a.duration ?? null,
|
||||||
|
federationStatus: a.federationStatus ?? null,
|
||||||
|
federationMeta: a.federationMeta ?? null,
|
||||||
createdAt: a.createdAt,
|
createdAt: a.createdAt,
|
||||||
})),
|
})),
|
||||||
embeds: embedRows.map(e => embedRowToEmbed(e)),
|
embeds: embedRows.map(e => embedRowToEmbed(e)),
|
||||||
|
|||||||
Reference in New Issue
Block a user