Add mediaType property to images in actor object
This commit is contained in:
parent
53138ea1c7
commit
72637fe80c
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue