fix: Default to asset type when not at top-level

This commit is contained in:
timedout authored and Jade Ellis committed 2026-11-10 21:24:46 +00:00
1 parent d108849f1a
commit a319421b98
1 file changed
+4 -2
+4 -2
View File
@@ -337,7 +337,8 @@ impl Service {
.map(|s| s.parse())
.transpose()
.ok()
.flatten();
.flatten()
.or(image_data.image_type);
preview_data.image_alt = obj
.properties
.get("image:alt")
@@ -361,7 +362,8 @@ impl Service {
.map(|s| s.parse())
.transpose()
.ok()
.flatten();
.flatten()
.or(video_data.video_type);
preview_data.video_alt = obj
.properties
.get("video:alt")