aboutsummaryrefslogtreecommitdiff
path: root/route
diff options
context:
space:
mode:
authorFChannel <>2022-06-25 11:33:24 -0700
committerFChannel <>2022-06-25 11:38:15 -0700
commitc2de9971e9d5f1408083f0d131818e16430238d2 (patch)
tree0f1892d081039145d31d4ff4169106ba988ab7a7 /route
parentb1d65922e257d605d3d95b6e679728524ba1e609 (diff)
removed public indexing being dependent on fchan being available
Diffstat (limited to 'route')
-rw-r--r--route/routes/main.go10
-rw-r--r--route/structs.go1
2 files changed, 0 insertions, 11 deletions
diff --git a/route/routes/main.go b/route/routes/main.go
index 99dad31..a792cd2 100644
--- a/route/routes/main.go
+++ b/route/routes/main.go
@@ -24,16 +24,6 @@ func Index(ctx *fiber.Ctx) error {
var data route.PageData
- reqActivity := activitypub.Activity{Id: "https://fchan.xyz/followers"}
- col, err := reqActivity.GetCollection()
- if err != nil {
- return util.MakeError(err, "Index")
- }
-
- if len(col.Items) > 0 {
- data.InstanceIndex = col.Items
- }
-
data.NewsItems, err = db.GetNews(3)
if err != nil {
return util.MakeError(err, "Index")
diff --git a/route/structs.go b/route/structs.go
index 17deb25..87ffce3 100644
--- a/route/structs.go
+++ b/route/structs.go
@@ -19,7 +19,6 @@ type PageData struct {
Key string
PostId string
Instance activitypub.Actor
- InstanceIndex []activitypub.ObjectBase
ReturnTo string
NewsItems []db.NewsItem
BoardRemainer []int