(path: String)
| 129 | |
| 130 | #[tracing::instrument(level = "debug", skip(path))] |
| 131 | pub fn convert_file_src(path: String) -> String { |
| 132 | if path.is_empty() || path.starts_with("asset:") || path == "favorites" { |
| 133 | return path; |
| 134 | } |
| 135 | |
| 136 | if !path.starts_with("http:") && !path.starts_with("https:") { |
| 137 | let res = convertFileSrc(path.as_str(), "asset"); |
| 138 | return res.as_string().unwrap(); |
| 139 | } |
| 140 | path |
| 141 | } |
| 142 | |
| 143 | #[tracing::instrument(level = "debug", skip(src))] |
| 144 | pub async fn get_blob_url(src: String) -> String { |
no outgoing calls
no test coverage detected