Fix video tag being incorrectly applied

This commit is contained in:
Alex Gleason 2025-02-02 20:14:30 -06:00
parent 3d221aa357
commit 83347df845
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -86,11 +86,11 @@ class EventsDB extends NPostgres {
if (imeta.length) {
ext.media = 'true';
}
if (imeta.every((tags) => tags.some(([name, value]) => name === 'm' && value.startsWith('video/')))) {
ext.video = 'true';
}
}
return ext;
}