add: ability to set home to stack
This commit is contained in:
parent
870289a5bb
commit
5df0ea6152
4 changed files with 31 additions and 13 deletions
|
@ -362,11 +362,11 @@ pub(crate) async fn initial_context(
|
|||
"is_supporter",
|
||||
&ua.permissions.check(FinePermission::SUPPORTER),
|
||||
);
|
||||
ctx.insert("home", ua.settings.default_timeline.relative_url());
|
||||
ctx.insert("home", &ua.settings.default_timeline.relative_url());
|
||||
} else {
|
||||
ctx.insert("is_helper", &false);
|
||||
ctx.insert("is_manager", &false);
|
||||
ctx.insert("home", DefaultTimelineChoice::default().relative_url());
|
||||
ctx.insert("home", &DefaultTimelineChoice::default().relative_url());
|
||||
}
|
||||
|
||||
ctx.insert("lang", &lang.data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue