fix: allow users with a private profile to view their own posts

add: channels/messages models
This commit is contained in:
trisua 2025-04-24 19:06:30 -04:00
parent 0c814e95d7
commit 9e6c5c9726
6 changed files with 94 additions and 1 deletions

View file

@ -9,6 +9,7 @@ use tera::Context;
use tetratto_core::{
config::Config,
model::auth::{DefaultTimelineChoice, User},
PUBSUB_ENABLED,
};
use tetratto_l10n::LangFile;
use tetratto_shared::hash::salt;
@ -283,6 +284,8 @@ pub(crate) async fn initial_context(
) -> Context {
let mut ctx = Context::new();
ctx.insert("config", &config);
ctx.insert("pubsub", &PUBSUB_ENABLED);
ctx.insert("user", &user);
ctx.insert("use_user_theme", &true);