diff options
author | FChannel <> | 2022-06-14 12:57:56 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 27d0796d7f775034f391ba8aaca99f2a81018842 (patch) | |
tree | a1b9f6efe413675d06423b0139f30c969adb6864 /route | |
parent | cb9a6cf7fcf379202f2ccfc4776daf4dd1d35b9d (diff) |
send to correct actors incase not following directly
Diffstat (limited to 'route')
-rw-r--r-- | route/routes/actor.go | 5 |
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") } |