From 520e8b95d6d549a5ea22d3acb1029b0362796694 Mon Sep 17 00:00:00 2001 From: masterX244 Date: Thu, 15 Jun 2023 13:08:24 +0200 Subject: [PATCH] Ignore for some garbge URLs that 404 wget guesses too much and generates bad URLs, ignore needed --- reddit.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/reddit.lua b/reddit.lua index f317c81..c1cfcc2 100644 --- a/reddit.lua +++ b/reddit.lua @@ -123,6 +123,7 @@ allowed = function(url, parenturl) or string.match(url, "/%?context=1$") or string.match(url, '/"$') or string.match(url, "^https?://[^/]+/message/compose") + or string.match(url, "www%.reddit%.com/avatar[/]?$") or ( string.match(url, "^https?://gateway%.reddit%.com/") and not string.match(url, "/morecomments/")