aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-19 12:53:24 -0700
committerFChannel <>2022-06-19 12:53:24 -0700
commit799569934fa7b2b0cfd9c981c67f9c63506469d1 (patch)
treedff2bf72d7ee39edc3612c90054b72e28893a844 /client.go
parentccdbe6fda1c783be80e74fcb97a10bef8d0de24d (diff)
last time with version conflicts on merge.....
Diffstat (limited to 'client.go')
-rw-r--r--client.go7
1 files changed, 6 insertions, 1 deletions
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