diff options
author | Case Duckworth | 2022-07-24 13:05:04 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-24 13:05:04 -0500 |
commit | 78fb5f9c6d74694a530f742523b7baf9dffc46d3 (patch) | |
tree | 5d9dec519f5a0b792f7c6db38818a60b4ae3c10e | |
parent | Un-paywall sites (diff) | |
download | sfeed-78fb5f9c6d74694a530f742523b7baf9dffc46d3.tar.gz sfeed-78fb5f9c6d74694a530f742523b7baf9dffc46d3.zip |
Test against silo, not link
-rwxr-xr-x | sfeed_html.awk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfeed_html.awk b/sfeed_html.awk index 0d620b8..bf5293c 100755 --- a/sfeed_html.awk +++ b/sfeed_html.awk | |||
@@ -202,7 +202,8 @@ FNR == 1 { | |||
202 | stamp = ENCLOSURE_STAMP | 202 | stamp = ENCLOSURE_STAMP |
203 | print_link(enclosure, "Enclosure: " enclosure, stamp) | 203 | print_link(enclosure, "Enclosure: " enclosure, stamp) |
204 | } | 204 | } |
205 | if ((link != id) && (id != enclosure) && (id ~ /^https?:/)) { | 205 | # Test id against silo here, since silo is the raw link value. |
206 | if ((silo != id) && (id != enclosure) && (id ~ /^https?:/)) { | ||
206 | # alternate links (comments, etc.) | 207 | # alternate links (comments, etc.) |
207 | stamp = ALT_LINK_STAMP | 208 | stamp = ALT_LINK_STAMP |
208 | print_link(id, "alternate link", stamp) | 209 | print_link(id, "alternate link", stamp) |