From 3c5eebf6275e6d202f8a7b7f027aabcda5c1f332 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 7 May 2022 15:11:35 -0700 Subject: more organizing structs to have object functions need to fully test to be sure nothing broke with changes --- webfinger/webfinger.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'webfinger') 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 -- cgit v1.2.3