From ee0da63862f22814a233d309bdc599945ae67284 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Sun, 31 Jan 2021 18:50:31 -0800 Subject: [PATCH] Update version and screenshot --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- src/utils.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e0c0b8c..3e257f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -994,7 +994,7 @@ checksum = "1cca32fa0182e8c0989459524dc356b8f2b5c10f1b9eb521b7d182c03cf8c5ff" [[package]] name = "libreddit" -version = "0.2.8" +version = "0.2.9" dependencies = [ "actix-web", "askama", diff --git a/Cargo.toml b/Cargo.toml index 42b8bb6..63b1fec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "libreddit" description = " Alternative private front-end to Reddit" license = "AGPL-3.0" repository = "https://github.com/spikecodes/libreddit" -version = "0.2.8" +version = "0.2.9" authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"] edition = "2018" diff --git a/README.md b/README.md index 1a03d6d..c0a28d9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > An alternative private front-end to Reddit -![screenshot](https://i.ibb.co/FxxbKM6/libreddit-rust.png) +![screenshot](https://i.ibb.co/185749F/image.png) --- diff --git a/src/utils.rs b/src/utils.rs index fe399e7..261af35 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -145,7 +145,7 @@ pub fn prefs(req: HttpRequest) -> Preferences { wide: cookie(&req, "wide"), show_nsfw: cookie(&req, "show_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.is_empty()).collect(), } }