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 --- post/util.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'post') diff --git a/post/util.go b/post/util.go index 67822b0..8db2d02 100644 --- a/post/util.go +++ b/post/util.go @@ -322,7 +322,7 @@ func ObjectFromForm(ctx *fiber.Ctx, obj activitypub.ObjectBase) (activitypub.Obj activity.To = append(activity.To, e.Id) - if local, err := activity.IsLocal(); err == nil && !local { + if local, _ := activity.IsLocal(); !local { actor, err := activitypub.FingerActor(e.Id) if err != nil { return obj, util.MakeError(err, "ObjectFromForm") @@ -331,8 +331,6 @@ func ObjectFromForm(ctx *fiber.Ctx, obj activitypub.ObjectBase) (activitypub.Obj if !util.IsInStringArray(obj.To, actor.Id) { obj.To = append(obj.To, actor.Id) } - } else if err != nil { - return obj, util.MakeError(err, "ObjectFromForm") } } } -- cgit v1.2.3