From 27d0796d7f775034f391ba8aaca99f2a81018842 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Tue, 14 Jun 2022 12:57:56 -0700 Subject: send to correct actors incase not following directly --- route/routes/actor.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'route/routes') 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") } -- cgit v1.2.3