fix: allow users with a private profile to view their own posts
add: channels/messages models
This commit is contained in:
parent
0c814e95d7
commit
9e6c5c9726
6 changed files with 94 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue