Browse Source

Fix #379

pull/387/head v0.21.6
spikecodes 5 months ago
parent
commit
977cd0763a
No known key found for this signature in database GPG Key ID: 4CECFF9B463BCB
  1. 2
      Cargo.lock
  2. 2
      Cargo.toml
  3. 2
      src/subreddit.rs

2
Cargo.lock

@ -555,7 +555,7 @@ checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125"
[[package]]
name = "libreddit"
version = "0.21.6"
version = "0.21.7"
dependencies = [
"askama",
"async-recursion",

2
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.21.6"
version = "0.21.7"
authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"]
edition = "2021"

2
src/subreddit.rs

@ -211,7 +211,7 @@ pub async fn subscriptions_filters(req: Request<Body>) -> Result<Response<Body>,
.unwrap_or_default();
// Find each subreddit name (separated by '+') in sub parameter
for part in sub.split('+') {
for part in sub.split('+').filter(|x| x != &"") {
// Retrieve display name for the subreddit
let display;
let part = if part.starts_with("u_") {

Loading…
Cancel
Save