Support imeta tags

This commit is contained in:
Alex Gleason
2024-05-18 13:22:20 -05:00
parent c8f9483795
commit 7d34b9401e
6 changed files with 46 additions and 49 deletions

View File

@@ -96,7 +96,7 @@ const createStatusController: AppController = async (c) => {
if (data.media_ids?.length) {
const media = await getUnattachedMediaByIds(kysely, data.media_ids)
.then((media) => media.filter(({ pubkey }) => pubkey === viewerPubkey))
.then((media) => media.map(({ url, data }) => ['media', url, data]));
.then((media) => media.map(({ data }) => ['imeta', ...data]));
tags.push(...media);
}