Support language param with L tags

This commit is contained in:
Alex Gleason
2024-06-07 10:01:08 -05:00
parent 4361c340b0
commit 45dee96219
2 changed files with 6 additions and 1 deletions

View File

@@ -104,6 +104,11 @@ const createStatusController: AppController = async (c) => {
tags.push(['subject', data.spoiler_text]);
}
if (data.language) {
tags.push(['L', 'ISO-639-1']);
tags.push(['l', data.language, 'ISO-639-1']);
}
const media = data.media_ids?.length ? await getUnattachedMediaByIds(kysely, data.media_ids) : [];
const imeta: string[][] = media.map(({ data }) => {