fix: gif emoji uploading

fix: external image proxy
This commit is contained in:
trisua 2025-05-10 22:11:12 -04:00
parent 275dd0a1eb
commit 8e241b3435
5 changed files with 17 additions and 20 deletions

View file

@ -39,7 +39,7 @@ pub fn render_markdown(input: &str) -> String {
.to_string()
.replace(
"src=\"http",
"loading=\"lazy\" src=\"/api/v1/util/proxy?url=",
"loading=\"lazy\" src=\"/api/v1/util/proxy?url=http",
)
.replace("<video loading=", "<video controls loading=")
.replace("--&gt;", "<align class=\"right\">")