Fix incorrect media link

Fix #292
This commit is contained in:
Trinity Pointard 2018-10-27 19:21:50 +02:00
parent b28c1a7568
commit 0bb719830a

View File

@ -67,7 +67,7 @@ impl Media {
if self.is_remote { if self.is_remote {
self.remote_url.clone().unwrap_or(String::new()) self.remote_url.clone().unwrap_or(String::new())
} else { } else {
ap_url(format!("{}/static/{}", Instance::get_local(conn).expect("Media::url: local instance not found error").public_domain, self.file_path)) ap_url(format!("{}/{}", Instance::get_local(conn).expect("Media::url: local instance not found error").public_domain, self.file_path))
} }
} }