aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFChannel <>2021-10-03 13:37:30 -0700
committerFChannel <>2021-10-03 13:37:30 -0700
commitc1ba6f94d7a44f79ea1ef2513021f2a29aba9a3e (patch)
tree8dd63d96e0a0240010b8a00df61c3bd1fb436525
parent4d73ce8f72b90e0f7e11b35f6bc63498576f83c0 (diff)
fix for broken media urls
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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")