From c1ba6f94d7a44f79ea1ef2513021f2a29aba9a3e Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 3 Oct 2021 13:37:30 -0700 Subject: fix for broken media urls --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 5eed9ef..de58247 100644 --- a/main.go +++ b/main.go @@ -2840,7 +2840,7 @@ func RouteImages(w http.ResponseWriter, media string) { resp, err := client.Do(req) - if err != nil || resp.StatusCode == 404 { + if err != nil || resp.StatusCode != 200 { fileBytes, err := ioutil.ReadFile("./static/notfound.png") CheckError(err, "could not get /static/notfound.png file bytes") -- cgit v1.2.3