From 7222d8077b2b1079ab26c53de833e72ff4a89e71 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 2 Aug 2022 15:16:23 -0500 Subject: Change libreddit url --- sfeed_html.awk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sfeed_html.awk b/sfeed_html.awk index 9ebe893..9873398 100755 --- a/sfeed_html.awk +++ b/sfeed_html.awk @@ -63,7 +63,7 @@ BEGIN { TWITTER_ALT_URL = envor("SFEED_TWITTER_ALT_URL", "https://nitter.net") } if (! REDDIT_ALT_URL) { - REDDIT_ALT_URL = envor("SFEED_REDDIT_ALT_URL", "https://libreddit.spike.codes") + REDDIT_ALT_URL = envor("SFEED_REDDIT_ALT_URL", "https://libreddit.de") } # Paywalls PAYWALL_LADDER = "https://archive.ph/newest/" @@ -168,7 +168,7 @@ FNR == 1 { print_link(enclosure, "Enclosure: " enclosure, stamp) } # Test id against silo here, since silo is the raw link value. - if ((silo != id) && (id != enclosure) && (id ~ /^https?:/)) { + if ((id != silo) && (id != enclosure) && (id ~ /^https?:/)) { # alternate links (comments, etc.) stamp = ALT_LINK_STAMP print_link(silo_link(id), "alternate link", stamp) @@ -357,8 +357,8 @@ function silo_link(link) siloed = 1 if (ret ~ (http "youtube\\.com")) { sub(http "youtube\\.com", YOUTUBE_ALT_URL, ret) - } else if (ret ~ (http "reddit\\.com")) { - sub(http "reddit\\.com", REDDIT_ALT_URL, ret) + } else if (ret ~ (http "i\\.reddit\\.com")) { + sub(http "i\\.reddit\\.com", REDDIT_ALT_URL, ret) } else if (ret ~ (http "twitter\\.com")) { sub(http "twitter\\.com", TWITTER_ALT_URL, ret) } else { -- cgit 1.4.1-21-gabe81