add: custom emojis

fix: don't show reposts of posts from blocked users
fix: don't show questions when they're from users you've blocked
This commit is contained in:
trisua 2025-05-10 21:58:02 -04:00
parent 9f187039e6
commit 275dd0a1eb
25 changed files with 697 additions and 61 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "tetratto-shared"
version = "2.3.0"
version = "3.0.0"
edition = "2024"
authors.workspace = true
repository.workspace = true

View file

@ -37,7 +37,10 @@ pub fn render_markdown(input: &str) -> String {
.add_tag_attributes("a", &["href", "target"])
.clean(&html)
.to_string()
.replace("src=\"", "loading=\"lazy\" src=\"/api/v1/util/proxy?url=")
.replace(
"src=\"http",
"loading=\"lazy\" src=\"/api/v1/util/proxy?url=",
)
.replace("<video loading=", "<video controls loading=")
.replace("--&gt;", "<align class=\"right\">")
.replace("-&gt;", "<align class=\"center\">")