add: image proxy
add: mentions in posts TODO: audit log, reports, user mod panel
This commit is contained in:
parent
e183a01887
commit
3a8af17154
14 changed files with 308 additions and 33 deletions
|
@ -34,10 +34,7 @@ pub fn render_markdown(input: &str) -> String {
|
|||
.generic_attributes(allowed_attributes)
|
||||
.clean(&html)
|
||||
.to_string()
|
||||
.replace(
|
||||
"src=\"",
|
||||
"loading=\"lazy\" src=\"/api/v1/util/ext/image?img=",
|
||||
)
|
||||
.replace("src=\"", "loading=\"lazy\" src=\"/api/v1/util/proxy?url=")
|
||||
.replace("-->", "<align class=\"right\">")
|
||||
.replace("->", "<align class=\"center\">")
|
||||
.replace("<-", "</align>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue