aboutsummaryrefslogtreecommitdiff
path: root/webfinger
diff options
context:
space:
mode:
Diffstat (limited to 'webfinger')
-rw-r--r--webfinger/webfinger.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/webfinger/webfinger.go b/webfinger/webfinger.go
index 5b96d62..bcbe16a 100644
--- a/webfinger/webfinger.go
+++ b/webfinger/webfinger.go
@@ -265,7 +265,9 @@ func AddInstanceToIndexDB(actor string) error {
}
// TODO: maybe allow different indexes?
- followers, err := activitypub.GetCollectionFromID("https://fchan.xyz/followers")
+
+ obj := activitypub.ObjectBase{Id: "https://fchan.xyz/followers"}
+ followers, err := obj.GetCollection()
if err != nil {
return err
}
@@ -278,7 +280,8 @@ func AddInstanceToIndexDB(actor string) error {
}
if !alreadyIndex {
- return activitypub.AddFollower("https://fchan.xyz", nActor.Id)
+ actor := activitypub.Actor{Id: "https://fchan.xyz"}
+ return actor.AddFollower(nActor.Id)
}
return nil