mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-06 14:37:40 +03:00
Set subscriptions as default front page
This commit is contained in:
parent
9c58d23b41
commit
21d96e261f
7 changed files with 86 additions and 48 deletions
|
@ -145,7 +145,7 @@ pub fn prefs(req: HttpRequest) -> Preferences {
|
|||
wide: cookie(&req, "wide"),
|
||||
hide_nsfw: cookie(&req, "hide_nsfw"),
|
||||
comment_sort: cookie(&req, "comment_sort"),
|
||||
subs: cookie(&req, "subscriptions").split(",").map(String::from).filter(|s| s != "").collect(),
|
||||
subs: cookie(&req, "subscriptions").split('+').map(String::from).filter(|s| s != "").collect(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue