mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix video tag being incorrectly applied
This commit is contained in:
parent
3d221aa357
commit
83347df845
1 changed files with 3 additions and 3 deletions
|
|
@ -86,11 +86,11 @@ class EventsDB extends NPostgres {
|
||||||
|
|
||||||
if (imeta.length) {
|
if (imeta.length) {
|
||||||
ext.media = 'true';
|
ext.media = 'true';
|
||||||
}
|
|
||||||
|
|
||||||
if (imeta.every((tags) => tags.some(([name, value]) => name === 'm' && value.startsWith('video/')))) {
|
if (imeta.every((tags) => tags.some(([name, value]) => name === 'm' && value.startsWith('video/')))) {
|
||||||
ext.video = 'true';
|
ext.video = 'true';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return ext;
|
return ext;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue