diff options
author | FChannel <> | 2022-06-12 15:36:19 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | f57d5722e6f2187bea249240eb14c881f989c3c1 (patch) | |
tree | ef8f4d23f9c40e0b0ba1ab2efb03e3795efe8ec0 /post/util.go | |
parent | dac4b267cab31fb3a4ce301f1bcdf364fcb541a1 (diff) |
first pass on federation working
Diffstat (limited to 'post/util.go')
-rw-r--r-- | post/util.go | 4 |
1 files changed, 1 insertions, 3 deletions
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") } } } |