From 0418dab57f9cf19540234d157a512e30a70a7152 Mon Sep 17 00:00:00 2001
From: FChannel <>
Date: Sun, 12 Jun 2022 16:20:59 -0700
Subject: error with getting object sets actor to empty

---
 route/routes/actor.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'route')

diff --git a/route/routes/actor.go b/route/routes/actor.go
index 94623f0..1072472 100644
--- a/route/routes/actor.go
+++ b/route/routes/actor.go
@@ -81,7 +81,7 @@ func ActorInbox(ctx *fiber.Ctx) error {
 		for _, e := range activity.To {
 			actor, err := activitypub.GetActorFromDB(e)
 			if err != nil {
-				return util.MakeError(err, "")
+				return util.MakeError(err, "ActorInbox")
 			}
 
 			if actor.Id != "" && actor.Id != config.Domain {
@@ -96,6 +96,7 @@ func ActorInbox(ctx *fiber.Ctx) error {
 				if err := activity.Object.Tombstone(); err != nil {
 					return util.MakeError(err, "ActorInbox")
 				}
+
 				if err := actor.UnArchiveLast(); err != nil {
 					return util.MakeError(err, "ActorInbox")
 				}
-- 
cgit v1.2.3