From 2b753c8eaa58a461b1d6a4c289c9b5f4102066e6 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 2 Aug 2022 15:22:08 -0500 Subject: ACTUALLY fix links --- sfeedrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfeedrc b/sfeedrc index b09c20b..7ceeff8 100644 --- a/sfeedrc +++ b/sfeedrc @@ -292,7 +292,7 @@ print # into a URL to get to the comments. gawk -v SUBREDDIT="$1" -v ALT=i.reddit.com \ 'BEGIN { FS="\t"; OFS="\t"; sub("^r_","r/",SUBREDDIT); } - { $6 = "https://" ALT "/" SUBREDDIT "/" substr($6, 4); } + { $6 = "https://" ALT "/" SUBREDDIT "/comments/" substr($6, 4); } { if (match($4,/\[link\]<\/a>/,ln)) $3 = ln[1]; } { gsub(/www\.reddit\.com/, ALT, $0); } { print; }' -- cgit 1.4.1-21-gabe81