fix: profile settings html sanitization

This commit is contained in:
trisua 2025-05-13 18:50:36 -04:00
parent d1e8e2b27c
commit 37d034db39
7 changed files with 6 additions and 66 deletions

View file

@ -1,5 +1,5 @@
use super::{render_error, PaginatedQuery, RepostsQuery, SearchedQuery};
use crate::{assets::initial_context, get_lang, get_user_from_token, sanitize::clean_context, State};
use crate::{assets::initial_context, get_lang, get_user_from_token, State};
use axum::{
Extension,
extract::{Path, Query},
@ -557,10 +557,6 @@ pub async fn settings_request(
let mut context = initial_context(&data.0.0, lang, &Some(user)).await;
context.insert("community", &community);
context.insert(
"community_context_serde",
&clean_context(&community.context),
);
context.insert("can_manage_channels", &can_manage_channels);
context.insert("channels", &channels);