add: better visual separation between profile posts and normal posts

This commit is contained in:
trisua 2025-04-12 10:57:17 -04:00
parent e092d46586
commit 5e3c0f5588
4 changed files with 35 additions and 21 deletions

View file

@ -219,11 +219,6 @@ pub async fn create_post_request(
}
};
let town_square = match data.0.get_community_by_id(data.0.0.town_square).await {
Ok(p) => p,
Err(e) => return Err(Html(render_error(e, &jar, &data, &Some(user)).await)),
};
let memberships = match data.0.get_memberships_by_owner(user.id).await {
Ok(p) => p,
Err(e) => return Err(Html(render_error(e, &jar, &data, &Some(user)).await)),
@ -246,8 +241,6 @@ pub async fn create_post_request(
let lang = get_lang!(jar, data.0);
let mut context = initial_context(&data.0.0, lang, &Some(user)).await;
context.insert("town_square", &town_square);
context.insert("communities", &communities);
// return