Compare commits
3 Commits
v0.31.1
...
v0.31.2-im
Author | SHA1 | Date | |
---|---|---|---|
992257a8b1 | |||
d49d32fbc6 | |||
e79242c9e7 |
@ -3,7 +3,7 @@ name = "redlib"
|
||||
description = " Alternative private front-end to Reddit"
|
||||
license = "AGPL-3.0"
|
||||
repository = "https://github.com/redlib-org/redlib"
|
||||
version = "0.31.0"
|
||||
version = "0.31.2"
|
||||
authors = [
|
||||
"Matthew Esposito <matt+cargo@matthew.science>",
|
||||
"spikecodes <19519553+spikecodes@users.noreply.github.com>",
|
||||
|
@ -883,7 +883,8 @@ pub fn rewrite_urls(input_text: &str) -> String {
|
||||
let text1 =
|
||||
// Rewrite Reddit links to Redlib
|
||||
REDDIT_REGEX.replace_all(input_text, r#"href="/"#)
|
||||
.to_string();
|
||||
.to_string()
|
||||
.replace("a href=\"https://preview.redd.it", "img src=\"https://preview.redd.it");
|
||||
let text1 = REDDIT_EMOJI_REGEX
|
||||
.replace_all(&text1, format_url(REDDIT_EMOJI_REGEX.find(&text1).map(|x| x.as_str()).unwrap_or_default()))
|
||||
.to_string()
|
||||
|
Reference in New Issue
Block a user