From f7bf818d29393ceaccf4d2906557351fa6a4f49f Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 7 May 2022 21:21:38 -0700 Subject: added error func and general cleanup/organization --- post/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'post') diff --git a/post/util.go b/post/util.go index b27a208..6c3e6a0 100644 --- a/post/util.go +++ b/post/util.go @@ -271,7 +271,7 @@ func ObjectFromForm(ctx *fiber.Ctx, obj activitypub.ObjectBase) (activitypub.Obj } if originalPost.Id != "" { - if local, _ := activitypub.IsActivityLocal(activity); !local { + if local, _ := activity.IsLocal(); !local { actor, err := webfinger.FingerActor(originalPost.Id) if err != nil { return obj, err @@ -308,7 +308,7 @@ func ObjectFromForm(ctx *fiber.Ctx, obj activitypub.ObjectBase) (activitypub.Obj activity.To = append(activity.To, e.Id) - if local, err := activitypub.IsActivityLocal(activity); err == nil && !local { + if local, err := activity.IsLocal(); err == nil && !local { actor, err := webfinger.FingerActor(e.Id) if err != nil { return obj, err -- cgit v1.2.3