Add mediaType property to images in actor object

This commit is contained in:
silverpill 2023-01-14 19:34:08 +00:00
parent 53138ea1c7
commit 72637fe80c
2 changed files with 3 additions and 2 deletions

View file

@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Save downloaded media as "unknown" if its media type is not supported.
- Use `mediaType` property value to determine file extension when saving downloaded media.
- Added `mediaType` property to images in actor object.
### Removed

View file

@ -241,7 +241,7 @@ pub fn get_local_actor(
let actor_image = ActorImage {
object_type: IMAGE.to_string(),
url: get_file_url(instance_url, &image.file_name),
media_type: None,
media_type: image.media_type.clone(),
};
Some(actor_image)
},
@ -252,7 +252,7 @@ pub fn get_local_actor(
let actor_image = ActorImage {
object_type: IMAGE.to_string(),
url: get_file_url(instance_url, &image.file_name),
media_type: None,
media_type: image.media_type.clone(),
};
Some(actor_image)
},