aboutsummaryrefslogtreecommitdiff
path: root/route/routes/actor.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-14 12:57:56 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit27d0796d7f775034f391ba8aaca99f2a81018842 (patch)
treea1b9f6efe413675d06423b0139f30c969adb6864 /route/routes/actor.go
parentcb9a6cf7fcf379202f2ccfc4776daf4dd1d35b9d (diff)
send to correct actors incase not following directly
Diffstat (limited to 'route/routes/actor.go')
-rw-r--r--route/routes/actor.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/route/routes/actor.go b/route/routes/actor.go
index 83cbca2..413f18c 100644
--- a/route/routes/actor.go
+++ b/route/routes/actor.go
@@ -56,12 +56,11 @@ func ActorInbox(ctx *fiber.Ctx) error {
break
}
- if _, err := activity.Object.WriteCache(); err != nil {
+ if wantToCache, err := activity.Object.WantToCache(actor); !wantToCache {
return util.MakeError(err, "ActorInbox")
}
- actor, err := activitypub.GetActorFromDB(e)
- if err != nil {
+ if _, err := activity.Object.WriteCache(); err != nil {
return util.MakeError(err, "ActorInbox")
}