aboutsummaryrefslogtreecommitdiff
path: root/post
diff options
context:
space:
mode:
authorFChannel <>2022-05-07 21:21:38 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commitf7bf818d29393ceaccf4d2906557351fa6a4f49f (patch)
tree723e542c8cf0db1e7e64923718977138db77b58d /post
parent3c5eebf6275e6d202f8a7b7f027aabcda5c1f332 (diff)
added error func and general cleanup/organization
Diffstat (limited to 'post')
-rw-r--r--post/util.go4
1 files changed, 2 insertions, 2 deletions
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