add: user last_policy_consent

This commit is contained in:
trisua 2025-08-13 02:22:00 -04:00
parent befd9096b1
commit 2edef9bd35
11 changed files with 107 additions and 9 deletions

View file

@ -469,10 +469,15 @@ pub(crate) async fn initial_context(
.check(SecondaryPermission::DEVELOPER_PASS),
);
ctx.insert("home", &ua.settings.default_timeline.relative_url());
ctx.insert(
"renew_policy_consent",
&(ua.last_policy_consent < config.policies.last_updated),
);
} else {
ctx.insert("is_helper", &false);
ctx.insert("is_manager", &false);
ctx.insert("home", &DefaultTimelineChoice::default().relative_url());
ctx.insert("renew_policy_consent", &false);
}
ctx.insert("lang", &lang.data);