aboutsummaryrefslogtreecommitdiff
path: root/route
diff options
context:
space:
mode:
Diffstat (limited to 'route')
-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")
}