From 9e7491390f94d7b6ce6aac58df50380bffc7bec4 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 1 Aug 2021 21:45:18 -0700 Subject: v0.0.14-release --- static/faq.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/faq.html b/static/faq.html index b9c6085..f4fb237 100644 --- a/static/faq.html +++ b/static/faq.html @@ -56,7 +56,7 @@

Soon™.

What version is this FChannel instance?

-

v0.0.14-dev

+

v0.0.14-release

[Home][Rules][FAQ] -- cgit v1.2.3 From ca04198f48b083e2eafb188bfe1a9a6815ef6771 Mon Sep 17 00:00:00 2001 From: anomalous69 <81135357+anomalous69@users.noreply.github.com> Date: Sun, 3 Oct 2021 16:24:53 +1300 Subject: Allow instances to work without fchan.xyz --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 3b7676e..16d88bc 100644 --- a/client.go +++ b/client.go @@ -120,7 +120,7 @@ func IndexGet(w http.ResponseWriter, r *http.Request, db *sql.DB) { data.BoardRemainer = make([]int, 0) } - data.InstanceIndex = GetCollectionFromReq("https://fchan.xyz/followers").Items + //data.InstanceIndex = GetCollectionFromReq("https://fchan.xyz/followers").Items data.NewsItems = getNewsFromDB(db, 3) t.ExecuteTemplate(w, "layout", data) -- cgit v1.2.3 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(-) 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