aboutsummaryrefslogtreecommitdiff
path: root/webfinger
diff options
context:
space:
mode:
authorFChannel <>2022-05-07 15:11:35 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit3c5eebf6275e6d202f8a7b7f027aabcda5c1f332 (patch)
tree5fa2d82f9375ac49be357f0f8b70db06d5c97305 /webfinger
parent39012c6b17073f6933a5ead8beed64df555f7348 (diff)
more organizing structs to have object functions
need to fully test to be sure nothing broke with changes
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