aboutsummaryrefslogtreecommitdiff
path: root/post/util.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-12 15:36:19 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commitf57d5722e6f2187bea249240eb14c881f989c3c1 (patch)
treeef8f4d23f9c40e0b0ba1ab2efb03e3795efe8ec0 /post/util.go
parentdac4b267cab31fb3a4ce301f1bcdf364fcb541a1 (diff)
first pass on federation working
Diffstat (limited to 'post/util.go')
-rw-r--r--post/util.go4
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")
}
}
}