mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-12 19:56:48 +00:00
fix: Default to asset type when not at top-level
This commit is contained in:
1 parent
d108849f1a
commit
a319421b98
1 file changed
+4
-2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user