From 799569934fa7b2b0cfd9c981c67f9c63506469d1 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 19 Jun 2022 12:53:24 -0700 Subject: last time with version conflicts on merge..... --- client.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client.go') diff --git a/client.go b/client.go index 2b00270..f4b74de 100644 --- a/client.go +++ b/client.go @@ -146,7 +146,12 @@ func IndexGet(w http.ResponseWriter, r *http.Request, db *sql.DB) { data.BoardRemainer = make([]int, 0) } - //data.InstanceIndex = GetCollectionFromReq("https://fchan.xyz/followers").Items + col := GetCollectionFromReq("https://fchan.xyz/followers") + + if len(col.Items) > 0 { + data.InstanceIndex = col.Items + } + data.NewsItems = getNewsFromDB(db, 3) data.Themes = &Themes -- cgit v1.2.3