diff --git a/plume-models/src/medias.rs b/plume-models/src/medias.rs index 21290c10..b79e6561 100644 --- a/plume-models/src/medias.rs +++ b/plume-models/src/medias.rs @@ -210,11 +210,7 @@ impl Media { // TODO: merge with save_remote? pub fn from_activity(conn: &DbConn, image: &Image) -> Result { - let remote_url = image - .id(&Instance::get_local()?.public_domain) - .expect("authorized domain") - .expect("exists and only") - .as_str(); + let remote_url = image.id().expect("exists and only").as_str(); let path = determine_mirror_file_path(remote_url); let parent = path.parent().ok_or(Error::InvalidValue)?; if !parent.is_dir() {