diff options
-rwxr-xr-x | sfeed_html.awk | 8 |
1 files 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 { | |||
63 | TWITTER_ALT_URL = envor("SFEED_TWITTER_ALT_URL", "https://nitter.net") | 63 | TWITTER_ALT_URL = envor("SFEED_TWITTER_ALT_URL", "https://nitter.net") |
64 | } | 64 | } |
65 | if (! REDDIT_ALT_URL) { | 65 | if (! REDDIT_ALT_URL) { |
66 | REDDIT_ALT_URL = envor("SFEED_REDDIT_ALT_URL", "https://libreddit.spike.codes") | 66 | REDDIT_ALT_URL = envor("SFEED_REDDIT_ALT_URL", "https://libreddit.de") |
67 | } | 67 | } |
68 | # Paywalls | 68 | # Paywalls |
69 | PAYWALL_LADDER = "https://archive.ph/newest/" | 69 | PAYWALL_LADDER = "https://archive.ph/newest/" |
@@ -168,7 +168,7 @@ FNR == 1 { | |||
168 | print_link(enclosure, "Enclosure: " enclosure, stamp) | 168 | print_link(enclosure, "Enclosure: " enclosure, stamp) |
169 | } | 169 | } |
170 | # Test id against silo here, since silo is the raw link value. | 170 | # Test id against silo here, since silo is the raw link value. |
171 | if ((silo != id) && (id != enclosure) && (id ~ /^https?:/)) { | 171 | if ((id != silo) && (id != enclosure) && (id ~ /^https?:/)) { |
172 | # alternate links (comments, etc.) | 172 | # alternate links (comments, etc.) |
173 | stamp = ALT_LINK_STAMP | 173 | stamp = ALT_LINK_STAMP |
174 | print_link(silo_link(id), "alternate link", stamp) | 174 | print_link(silo_link(id), "alternate link", stamp) |
@@ -357,8 +357,8 @@ function silo_link(link) | |||
357 | siloed = 1 | 357 | siloed = 1 |
358 | if (ret ~ (http "youtube\\.com")) { | 358 | if (ret ~ (http "youtube\\.com")) { |
359 | sub(http "youtube\\.com", YOUTUBE_ALT_URL, ret) | 359 | sub(http "youtube\\.com", YOUTUBE_ALT_URL, ret) |
360 | } else if (ret ~ (http "reddit\\.com")) { | 360 | } else if (ret ~ (http "i\\.reddit\\.com")) { |
361 | sub(http "reddit\\.com", REDDIT_ALT_URL, ret) | 361 | sub(http "i\\.reddit\\.com", REDDIT_ALT_URL, ret) |
362 | } else if (ret ~ (http "twitter\\.com")) { | 362 | } else if (ret ~ (http "twitter\\.com")) { |
363 | sub(http "twitter\\.com", TWITTER_ALT_URL, ret) | 363 | sub(http "twitter\\.com", TWITTER_ALT_URL, ret) |
364 | } else { | 364 | } else { |