aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorFChannel <>2021-06-29 14:04:13 -0700
committerFChannel <>2021-06-29 14:04:13 -0700
commita81f3ef5cfe72b9edf345564fc31361650f15110 (patch)
tree862ff930b44c62435c375f10cf54afb4053a6d02 /client.go
parent9b67a65d76eb98a6e405b677a20c6215e1271753 (diff)
added public instance tracking when instance is created
Diffstat (limited to 'client.go')
-rw-r--r--client.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/client.go b/client.go
index d91bbc7..97222d1 100644
--- a/client.go
+++ b/client.go
@@ -46,6 +46,7 @@ type PageData struct {
Key string
PostId string
Instance Actor
+ InstanceIndex []ObjectBase
}
type AdminPage struct {
@@ -88,6 +89,7 @@ func IndexGet(w http.ResponseWriter, r *http.Request, db *sql.DB) {
data.Board.Actor = actor
data.Board.Post.Actor = actor.Id
data.Board.Restricted = actor.Restricted
+ data.InstanceIndex = GetCollectionFromReq("https://fchan.xyz/followers").Items
t.ExecuteTemplate(w, "layout", data)
}