From b3d4f6f91c2e9d9fb338c20256d45ada1f5406b0 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Mon, 27 Dec 2021 18:00:19 -0800 Subject: [PATCH] Show external page links again --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/utils.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 24a89f6..edf3082 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -572,7 +572,7 @@ checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125" [[package]] name = "libreddit" -version = "0.20.4" +version = "0.20.5" dependencies = [ "askama", "async-recursion", diff --git a/Cargo.toml b/Cargo.toml index b21ea92..72c71cd 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.20.4" +version = "0.20.5" authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"] edition = "2021" diff --git a/src/utils.rs b/src/utils.rs index 96e617b..47f0a20 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -596,7 +596,7 @@ pub fn format_url(url: &str) -> String { "external-preview.redd.it" => capture(r"https://external\-preview\.redd\.it/(.*)", "/preview/external-pre/", 1), "styles.redditmedia.com" => capture(r"https://styles\.redditmedia\.com/(.*)", "/style/", 1), "www.redditstatic.com" => capture(r"https://www\.redditstatic\.com/(.*)", "/static/", 1), - _ => String::new(), + _ => url.to_string(), } }) }