From 0bb719830a80334515965f5bd0f64aff356a6110 Mon Sep 17 00:00:00 2001 From: Trinity Pointard Date: Sat, 27 Oct 2018 19:21:50 +0200 Subject: [PATCH] Fix incorrect media link Fix #292 --- plume-models/src/medias.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plume-models/src/medias.rs b/plume-models/src/medias.rs index 484ab532..713fbef8 100644 --- a/plume-models/src/medias.rs +++ b/plume-models/src/medias.rs @@ -67,7 +67,7 @@ impl Media { if self.is_remote { self.remote_url.clone().unwrap_or(String::new()) } 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)) } }