From f57d5722e6f2187bea249240eb14c881f989c3c1 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 12 Jun 2022 15:36:19 -0700 Subject: first pass on federation working --- activitypub/actor.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'activitypub/actor.go') diff --git a/activitypub/actor.go b/activitypub/actor.go index e54088d..b69c831 100644 --- a/activitypub/actor.go +++ b/activitypub/actor.go @@ -818,8 +818,8 @@ func (actor Actor) IsAlreadyFollower(follow string) (bool, error) { } func (actor Actor) IsLocal() (bool, error) { - actor, err := GetActorFromDB(actor.Id) - return actor.Id != "", util.MakeError(err, "IsLocal") + actor, _ = GetActorFromDB(actor.Id) + return actor.Id != "", nil } func (actor Actor) IsValid() (Actor, bool, error) { @@ -1048,7 +1048,7 @@ func (actor Actor) WriteCache() error { } for _, e := range collection.OrderedItems { - if err := e.WriteCache(); err != nil { + if _, err := e.WriteCache(); err != nil { return util.MakeError(err, "WriteCache") } } @@ -1077,7 +1077,7 @@ func (actor Actor) MakeFollowActivity(follow string) (Activity, error) { } followActivity.Actor = &nactor - followActivity.Object = &obj + followActivity.Object = obj followActivity.Object.Actor = follow followActivity.To = append(followActivity.To, follow) -- cgit v1.2.3