mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 23:31:24 +01:00
implement _file in terms of _folder
what the heck lol
This commit is contained in:
parent
fd2a0ac2ab
commit
f6b0a10e6e
1 changed files with 1 additions and 3 deletions
|
|
@ -609,9 +609,7 @@ impl Service {
|
|||
}
|
||||
|
||||
pub(crate) fn get_media_file(&self, key: &MediaFileKey) -> PathBuf {
|
||||
let mut r = PathBuf::new();
|
||||
r.push(self.config.database.path.clone());
|
||||
r.push("media");
|
||||
let mut r = self.get_media_folder();
|
||||
r.push(general_purpose::URL_SAFE_NO_PAD.encode(key.as_bytes()));
|
||||
r
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue